CakePHP version: 4.0.1
Font Awesome version: free-5.12.0 - here
I've just upgraded from Cake version 3.7.5 to 4.0.1 and the font awesome glyph is not being displayed as the buttons title anymore.
I followed the information here in the cookbook for the configuration of the button as detailed below:
$this->Form->button('<i class="fas fa-search"></i>', [
'type' => 'submit',
'name' => 'AccountChoose',
'class' => 'btn btn-ae-lookup-as-glyph'
]);
I tried using 'escape' => true in the buttons config just in case it was something to do with the html encoding but no change.
I also tried declaring the title like this but still no change.
$this->Form->button("<i class='fas fa-search'></i>", [
The glyph is displayed outside of the button so I know it's something that's changed between the 3x and 4x branch.
My Question.
Is there a type of button configuration that would allow me to display the glyph as the buttons title in version 4.0.1 or perhaps it has been designed out in which case is there an alternative method.
Thanks Z.
@ndm - Great, all working. And thanks for creating the Pr.