I want to use a toggle button and found a perfect solution. I adapted the code to use a Font Awesome icon:
<a id="button1" title="button1"><i class="fa fa-bluetooth fa-5x"></i></a>
<a id="button2" title="button2"><span id="mytext">large text</span></a>
The result is that neither the icon nor plain text expand the button:
What is the way to automatically the size of a button to the size of the underlying text?