[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
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
cee-chen
left a comment
There was a problem hiding this comment.
Changes look great! Thanks for all the back and forth!
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_5846/ |
Summary
Converts
EuiScreenReaderOnlyto@emotionstyling and updates a lot of snapshots.The
euiScreenReaderOnlySass mixin remains available but is no longer used by the.euiScreenReaderOnlyselector. The.euiScreenReaderOnlyis now an Emotion utility class that uses theeuiScreenReaderOnlyJS 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