Closed lucagoslar closed 1 year ago
Exactly what I was hoping for in publishing the core package :)
Fantastic, thanks!
Found a bug - I missed adding a dollar sign, breaking most SASS and CSS behaviour. You can find a demo at https://github.com/lucagoslar/phosphor-css-demo-pr-209, which I deployed to https://lucagoslar.github.io/phosphor-css-demo-pr-209/.
My apologies.
@lucagoslar thanks for the fix, I was having trouble testing weights other than regular
on my end and thought I was doing something wrong 😅. Testing again...
I had one small comment. Not to tell you how to make your lib, but I have a feeling that using compound class selectors .ph.train.duotone
might lead to some unintentional outside styles being applied, since the individual class names are so simple. That's why we used atomic classes like .ph-train-duotone
in our implementation, to try to avoid clashing.
Also, out of curiosity, is it possible to color the icons without resorting to CSS image filters?
@lucagoslar thanks for the fix, I was having trouble testing weights other than
regular
on my end and thought I was doing something wrong 😅. Testing again...
Oh no - I‘m so sorry. For whatever reason, I didn’t notice earlier.
Fair point. However, ‘.train’ has no effect without ‘.ph’. So, unless one is using ‘.ph’ for another purpose, there should be no trouble. In addition, using exclusively atomic classes would not allow reusing styles, producing a much larger output. How about ‘.ph.icon’ instead?
Excellent idea. This could work using a mask instead of a background image - using filters might not be necessary. I will be taking care of this in the future.
I quite like this implementation! Will take a further look and demo it tonight before adding. But thanks for the contribution!