Closed kagol closed 1 month ago
The changes involve a restructuring of font styling definitions in the font.scss
file. The previous explicit definitions for various font styles have been replaced with a dynamic map data structure, $font-map
, which consolidates font names and their corresponding font-family values. The implementation uses the @each
directive to iterate over the map, generating styles for span[data-value]::before
and the ql-picker-label
, thereby simplifying the control flow and enhancing maintainability.
File Path | Change Summary |
---|---|
packages/fluent-editor/src/assets/font.scss | Replaced explicit font style definitions with a $font-map for dynamic styling using @each . |
font.scss
file, which is directly related to the changes made in the main PR, as both involve restructuring font styling definitions.In the land of fonts so bright,
A map was drawn, a lovely sight.
No more spans, just loops that play,
Styling dreams in a simpler way.
Hops of joy for code so neat,
A rabbit's cheer, a rhythmic beat! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
PR
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information
Summary by CodeRabbit