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

Use CSS variables for sprite images #1020

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

captbaritone
Copy link
Owner

No description provided.

@@ -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"],
Copy link
Owner Author

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";
Copy link
Owner Author

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.

@captbaritone
Copy link
Owner Author

Some quite valid integration test failures here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant