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

Allow css/webfont to work out of the box in more settings #1094

Open
jourdain opened this issue Apr 14, 2024 · 0 comments
Open

Allow css/webfont to work out of the box in more settings #1094

jourdain opened this issue Apr 14, 2024 · 0 comments
Labels
feature request New feature/change requested

Comments

@jourdain
Copy link

jourdain commented Apr 14, 2024

Currently, the CSS set the font-family on the class and omits the :before modifier, which allows other CSS to override it.

Adding the following will fix such issue.

.ti:before {
  font-family:tabler-icons !important;
}

For context, I could skip my add-on CSS if it was part of your CSS.

Looking at the code, it seems that it could be done in tabler-icons/packages/icons-webfront/.build/iconfront.scss

.#{$ti-prefix}, .#{$ti-prefix}:before {
  font-family: $ti-font-family !important;
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;

  /* Better Font Rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

Thanks for considering my suggestion.

@BG-Software-BG BG-Software-BG added the feature request New feature/change requested label Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature/change requested
Projects
None yet
Development

No branches or pull requests

2 participants