-
Notifications
You must be signed in to change notification settings - Fork 356
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
font-awesome integration #2223
Comments
I believe this issue has to do with this: #568 (I am facing your exact same scenario). |
Ah, interesting. @function next-fa-glyph() {
$fa-glyph-counter: $fa-glyph-counter + 1 !global;
$lo-part: $fa-glyph-counter % 256;
$hi-part: ($fa-glyph-counter - $lo-part) / 256;
$hex-num-str: str-slice(#{rgb($hi-part, $lo-part, 1)}, 2, 5);
$glyph: unquote('"\\#{$hex-num-str}"');
@debug "divider offset: #{$glyph}";
@return $glyph;
} Most specifically, the line I can't tell, but it looks like it's some cut off part of |
I used |
I'll have to check the docs, is that even definable if you're using it as a node package and not CLI? Looked through the webpack options and didn't see that. Only charset I saw was if I upgraded to 1.50.x something, and that was going to be my last ditch effort. |
Yeah, I've gone through the code and double-checked every little thing, for some reason, it's taking my unicode values generated in scss, and converting them over to an rgb value. The prints inside the scss return fine:
But since I'm using "rgb" for math, once I switch over to sass 1.49.10, it returns rgb instead of what it originally did. Before 1.49.10
After
|
To be clear: this code is wildly unsafe, as it assumes that colors will always be serialized as hex codes which was never guaranteed by Sass. It's also totally unnecessary; you can write a function to directly convert a number into a hex code like this. Closing as this is a bug coming from that |
Oh, that's definitely another way to do it. Very simple. I'm not completely up on SASS yet (still learning) but is the integer restricted to certain values? It appears if you type '256' in, it states the List index may not be 0. Unless there's a restriction with list.nth I need to read up on. Appreciate the help and the sample. |
That's a bug—I've just fixed it. |
Hey,
v1.49.10 modified the way colors were handled by manually adding "rgba" to the beginning of a color string, whereas the documentation states that that rgba will be converted over to hex.
The text was updated successfully, but these errors were encountered: