-
Notifications
You must be signed in to change notification settings - Fork 840
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
[CSS-in-JS] Convert EuiScreenReaderOnly
#5846
Conversation
Preview documentation changes for this PR: https://eui.elastic.co/pr_5846/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5846/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5846/ |
src/components/accessibility/screen_reader_only/screen_reader_only.styles.ts
Outdated
Show resolved
Hide resolved
src/components/accessibility/screen_reader_only/screen_reader_only.tsx
Outdated
Show resolved
Hide resolved
src/components/accessibility/screen_reader_only/screen_reader_only.tsx
Outdated
Show resolved
Hide resolved
Preview documentation changes for this PR: https://eui.elastic.co/pr_5846/ |
src/components/accessibility/screen_reader_only/screen_reader_only.styles.ts
Outdated
Show resolved
Hide resolved
Preview documentation changes for this PR: https://eui.elastic.co/pr_5846/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5846/ |
src/components/accessibility/screen_reader_only/screen_reader_only.styles.ts
Outdated
Show resolved
Hide resolved
src/components/accessibility/screen_reader_only/screen_reader_only.styles.ts
Outdated
Show resolved
Hide resolved
Preview documentation changes for this PR: https://eui.elastic.co/pr_5846/ |
We could almost just have |
If that's the case, personally my vote is to keep the two separate-ish / simply have the utility class call the |
I think I agree. We can always revisit when optimization becomes more of a focus. |
src/components/accessibility/screen_reader_only/screen_reader_only.tsx
Outdated
Show resolved
Hide resolved
src/components/accessibility/screen_reader_only/screen_reader_only.styles.ts
Outdated
Show resolved
Hide resolved
src/components/accessibility/screen_reader_only/screen_reader_only.tsx
Outdated
Show resolved
Hide resolved
src/components/accessibility/screen_reader_only/screen_reader_only.tsx
Outdated
Show resolved
Hide resolved
Preview documentation changes for this PR: https://eui.elastic.co/pr_5846/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5846/ |
src/components/accessibility/screen_reader_live/__snapshots__/screen_reader_live.test.tsx.snap
Outdated
Show resolved
Hide resolved
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.
Changes look great! Thanks for all the back and forth!
Preview documentation changes for this PR: https://eui.elastic.co/pr_5846/ |
Summary
Converts
EuiScreenReaderOnly
to@emotion
styling and updates a lot of snapshots.The
euiScreenReaderOnly
Sass mixin remains available but is no longer used by the.euiScreenReaderOnly
selector. The.euiScreenReaderOnly
is now an Emotion utility class that uses theeuiScreenReaderOnly
JS mixin.For snapshot updates that required moving away from
mount
, I either usedrender()
,mount().render()
or whatever pattern was most common in the file.Checklist