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

Star rating images enhancement #2183

Closed
2 tasks done
louismaximepiton opened this issue Aug 2, 2023 · 0 comments · Fixed by #2184
Closed
2 tasks done

Star rating images enhancement #2183

louismaximepiton opened this issue Aug 2, 2023 · 0 comments · Fixed by #2184

Comments

@louismaximepiton
Copy link
Member

louismaximepiton commented Aug 2, 2023

Prerequisites

Proposal

Use mask-image and background-color instead of background-image for star ratings.

Motivation and context

AFAICS, these are the benefits:

  • Ease the color mode by using CSS vars instead of Sass vars.
  • Lighten the bundle by importing the svgs only once.

It will also ease the new design. For now, we need to implement the svg for each size, color mode and states.

Just as an example: main...main-lmp-star-rating-enhancement

@julien-deramond julien-deramond changed the title Star rating Star rating images enhancement Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant