-
Notifications
You must be signed in to change notification settings - Fork 702
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
Use CSS variables for sprite images #1020
base: master
Are you sure you want to change the base?
Conversation
@@ -25,9 +25,6 @@ export const imageSelectors: Selectors = { | |||
MAIN_STOP_BUTTON_ACTIVE: [".actions #stop:active"], | |||
MAIN_NEXT_BUTTON: [".actions #next"], | |||
MAIN_NEXT_BUTTON_ACTIVE: [".actions #next:active"], | |||
MAIN_EJECT_BUTTON: ["#eject"], | |||
MAIN_EJECT_BUTTON_ACTIVE: ["#eject:active"], | |||
MAIN_WINDOW_BACKGROUND: ["#main-window"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Long term, this change would let us replace these ~310 lines of random looking CSS selectors with calls to useSprite
in each component that uses a sprite, thus allowing the reader of the component to know how it gets styled without having to know to check this file.
| "GEN_MIDDLE_LEFT_BOTTOM" | ||
| "GEN_MIDDLE_RIGHT" | ||
| "GEN_MIDDLE_RIGHT_BOTTOM" | ||
| "GEN_CLOSE_SELECTED"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a huge list, but it's just a type. No bundle cost.
c177f5f
to
3b7a830
Compare
Some quite valid integration test failures here. |
No description provided.