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

Feature request: option to change CSS class root from ".fa" to something else #20228

Open
3 tasks done
jakes-space opened this issue May 22, 2024 · 0 comments
Open
3 tasks done
Labels

Comments

@jakes-space
Copy link

jakes-space commented May 22, 2024

Is your feature request related to a problem?

I added Font Awesome to my web app ... and all my floating action buttons (CSS class .fab) broke.

An option to change the prefix of all Font Awesome classes would help avoid name collisions for existing projects.

Feature description

A kit option to change the prefix of all Font Awesome CSS classes.

If the developer sets it to "foobaz", then all classes within that kit start with .foobaz:
.fa.foobaz
.fa-face-smile.foobaz-face-smile
etc.

Alternatives

  • Rename my classes to avoid collisions.
  • Use the SVG files or strings but not the core FA package and its styling.
  • Use the JS API's cssPrefix option to change the prefix. Probably the best current solution, but requires JS.

Additional context

No response

Feature request checklist

  • The title starts with "Feature request: " and is followed by the requested feature description
  • This is a single feature
  • I have searched for existing issues and to the best of my knowledge this is not a duplicate
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

1 participant