? Pending

User tests: Successful: Unsuccessful:

avatar ciar4n
ciar4n
31 Mar 2017

Pull Request for Issue # .

Summary of Changes

Currently the toolbar button icons are only styled for 'icon-'. This PR allows you to also use FontAwesome classes.

Testing Instructions

Navigate to view containing a toolbar (Content -> Articles). Inspect toolbar buttons and replace icon class (eg. icon-publish) with FontAwesome classes (fa fa-coffee).

Before patch

toolbar-fa1

After patch

toolbar-fa2

Documentation Changes Required

No

avatar ciar4n ciar4n - open - 31 Mar 2017
avatar ciar4n ciar4n - change - 31 Mar 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 31 Mar 2017
Category Administration Templates (admin)
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 31 Mar 2017

With or -out PR Toolbar looks like:
bildschirmfoto 2017-03-31 um 09 55 25

avatar ciar4n ciar4n - change - 31 Mar 2017
The description was changed
avatar ciar4n ciar4n - edited - 31 Mar 2017
avatar ciar4n
ciar4n - comment - 31 Mar 2017

@franz-wohlkoenig Without and with PR try replacing the icon using font awesome classes (fa fa-coffee).

Right click icon -> Inspect

<button class="btn btn-sm btn-outline-success" ... >
<span class="fa fa-coffee"></span>
Publish
</button>
avatar franz-wohlkoenig franz-wohlkoenig - test_item - 31 Mar 2017 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 31 Mar 2017

I have tested this item successfully on 1951ff2


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15021.

avatar bembelimen
bembelimen - comment - 1 Apr 2017

Not sure about this, why not compile/setup your fontAwesome stuff with "icon-" instead of "fa-"? Is one line in the settings. Otherwise we have to support other prefixes, too?

avatar ciar4n
ciar4n - comment - 1 Apr 2017

I hear ya. Personally I would sooner fa- over icon- simply because it is what people are more familiar with in regards to using FA. Most of FAs documentation references fa-. @C-Lodder what do you think?

avatar C-Lodder
C-Lodder - comment - 1 Apr 2017

To be honest, we should be supporting both. The agreement with using FA was that we still keep BC, by mapping the styling of icon-xxx to the correct FA class.

We don't need to support other prefixes for the core templates, but 3rd party template could using something like this for the front-end if they want to support a dynamic prefix for FA

[class^="icon-"],
[class*=" icon-"],
[class^="#{$fa-css-prefix}-"],
[class*=" #{$fa-css-prefix}-"] {
  ...
}
avatar franz-wohlkoenig franz-wohlkoenig - change - 1 Apr 2017
Priority Medium Very low
avatar ciar4n
ciar4n - comment - 1 Apr 2017

@C-Lodder Updated.. tests fine.

avatar ciar4n ciar4n - change - 3 Apr 2017
Labels Added: ?
avatar franz-wohlkoenig franz-wohlkoenig - change - 3 Apr 2017
Easy No Yes
avatar wilsonge wilsonge - change - 9 Apr 2017
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-04-09 11:18:12
Closed_By wilsonge
avatar wilsonge wilsonge - close - 9 Apr 2017
avatar wilsonge wilsonge - merge - 9 Apr 2017

Add a Comment

Login with GitHub to post a comment