Skip to content
This repository has been archived by the owner on Sep 10, 2019. It is now read-only.

Icons showing as e.g. \f003 due to SASS handling of backspace #54

Open
simeoncode opened this issue Oct 14, 2015 · 0 comments
Open

Icons showing as e.g. \f003 due to SASS handling of backspace #54

simeoncode opened this issue Oct 14, 2015 · 0 comments

Comments

@simeoncode
Copy link

Hi, I couldn't get the SASS version of the icons working, but when including your pre-generated CSS file it worked fine. So I started digging around, and found that when generating CSS from the SASS version of foundation-icons, the output is as follows:

.foundicon-plus:before {
    content: "\\f003";
}

This breaks the icons since it should be content: "\f003" in order to display correctly.

Maybe the issue arises due to changes in how the sass library is parsing stuff? I'm using gulp-sass to compile.

I've created a workaround locally by doing this on lines 5-9 in _settings.scss:

@mixin i-class($name,$pua) {
  .#{$classPrefix}#{$name}:before {
    content: unquote('"\f#{$pua}"');
  }
}

This fixes the error for me, outputting e.g. .foundicon-plus:before { content: "\f003"; }

I got the solution from the FontAwesome project: FortAwesome/Font-Awesome#6728

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant