Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

heading-smaller, heading-bigger, heading-1, 2, 3 - using wrong css class? #9

Closed
jarrodbell opened this issue May 10, 2018 · 3 comments
Assignees
Labels

Comments

@jarrodbell
Copy link

Seems all these icons are using fa-header which doesn't exist in FontAwesome.
Should they also have fa-heading?

Displaying those buttons by default will result in the FontAwesome 'missing icon question mark' displaying instead.

On a similar note, the "H1, H2, H3" is currently added using css :after, but FontAwesome 5 has inbuilt support for fa-h1, etc, which looks cleaner.

@Ionaru
Copy link
Owner

Ionaru commented May 12, 2018

Unfortunately fa-h1, fa-h2 and fa-h3 are only available in FontAwesome Pro, I'd like to keep the default icons compatible with the free version of FontAwesome.

(Seems like the other icon classes on that button: fa-header-x, fa-header-1, fa-header-bigger, etc. do not work at all)

I am working on a complete rewrite of the project that will solve these icon issues, but that's a long way from being finished.

Right now I can change the code so the icon class has fa-heading, which would make them the same as the regular heading button. Alternatively you can set your own icon classes using the configuration.
Let me know which solution you prefer.

@Ionaru Ionaru added the Bug label May 12, 2018
@jarrodbell
Copy link
Author

Ahh yes didn't notice H1/2/3 are Pro only. So just adding fa-heading by default for smaller/bigger will do enough to fix a completely missing icon.

Maybe add fa-sm or fa-lg to show the heading icon in smaller or larger size in the toolbar by default?

@Ionaru
Copy link
Owner

Ionaru commented May 13, 2018

Sounds good to me

@Ionaru Ionaru self-assigned this May 13, 2018
@Ionaru Ionaru closed this as completed in c8614d9 May 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants