-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Components: Switch screen-reader-text to VisuallyHidden #18165
Conversation
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.
I tested and this seems to work great on the FontSizePicker in #18149. I left two notes but nothing I think is a big problem.
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.
Looks good to me
Co-Authored-By: Grzegorz (Greg) Ziółkowski <[email protected]>
410e6a8
to
dc14595
Compare
Travis raises some concerns in e2e tests related to taxonomies. I restarted them but they might be valid looking at the scope of the changes. It might be also related to some unrelated changes in WordPress core. |
@gziolo yeh, I can't see why those tests are failing. I tried rebasing to see if that was part of the issue but didn't help. |
@gziolo - it was a valid issue with the test. It had a check for I've gotten to used to restarting tests to get them to pass. 😆 |
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.
Cool, I'm glad it was easy to sort out. Everything looks good, thanks for working on it 🚢
…rnmobile/gb-mobile-872-JSApplicationIllegalArgumentException-in-RCTAztecView * 'master' of https://github.com/WordPress/gutenberg: (56 commits) Update: Default gradients. (#18214) Fix: setting a preset color on pullquote default style makes the block invalid (#18194) Fix default featured image size (#15844) Fix postmeta radio regression. (#18183) Components: Switch screen-reader-text to VisuallyHidden (#18165) [rnmobile] Release 1.16.0 to master (#18261) Template Loader: Add theme block template resolution. (#18247) Add a README file for storybook directory (#18245) Add editor-gradient-presets to get_theme_support (#17841) Add "Image Title Attribute" as an editable attribute on the image block (#11070) enables horizontal movers in social blocks (#18234) [RNMobile] Add mobile Spacer component (#17896) Add experimental `ResponsiveBlockControl` component (#16790) Fix mover for floats. (#18230) Rename Component to WPComponent in docstring (#18226) Colors Selector: replace `Aa` text by SVG icon (#18222) Removed gif from README (#18200) makes the submenu items stacked vertically (#18221) Add block navigator to sidebar panel for nav block (#18202) Fix: consecutive updates may trigger a blocks reset (#18219) ...
Description
This is the follow up PR from comment in #18127 it addresses changing the other spots in components that use
screen-reader-text
to usingVisuallyHidden
component.The two spots changed are:
base-control
andform-text-token
How has this been tested?
I created a story in Storybook to be committed in separate PR and confirmed that using the component shows the label as intended,
Types of changes
In essence it changes
<span className="screen-reader-text"> ... </span>
to<VisuallyHidden> ... </VisuallyHidden>
The base-control change uses label, and had a bit more logic wrapped around it.
Checklist: