-
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
Post Sticky Toggle: Improve the design #62012
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
5c3ec04
to
d3e69fa
Compare
Size Change: +33 B (0%) Total Size: 1.74 MB
ℹ️ View Unchanged
|
Flaky tests detected in d3e69fa. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/9251773653
|
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, thanks!
<VisuallyHidden> | ||
{ __( 'Stick to the top of the blog' ) } | ||
</VisuallyHidden> |
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 thought most of the components supported the hideLabelFromVision
prop.
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.
Mmm good point, I could update the component to support this prop. 🤔
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.
It's not a blocker for this PR. Let's create a separate issue for it.
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, but it would be nice to get design feedback as well.
If the visual control label is "Sticky", then the accessible name of the control should also be "Sticky". Having a different visually hidden label makes the control harder to use for voice command. Additionally, WCAG 2.5.3 Label in Name requires that the accessible name of a control must contain the visual label, which this does not. If we believe that "Sticky" is sufficient labeling to convey the purpose of this control for sighted users, then it is also sufficient for users of screen readers. |
The PR looks good. I believe this enhancement will offer users a more pleasant and improved experience. Thanks! |
cb25507
to
1d77290
Compare
This seems like a step in the right direction in that it conforms to the updated summary panel format. I do wonder if it remains a little too prominent though. Something to explore separately could be moving it to the Status dialog. |
Co-authored-by: youknowriad <[email protected]> Co-authored-by: ntsekouras <[email protected]> Co-authored-by: Mamaduka <[email protected]> Co-authored-by: joedolson <[email protected]> Co-authored-by: huzaifaalmesbah <[email protected]>
Co-authored-by: youknowriad <[email protected]> Co-authored-by: ntsekouras <[email protected]> Co-authored-by: Mamaduka <[email protected]> Co-authored-by: joedolson <[email protected]> Co-authored-by: huzaifaalmesbah <[email protected]>
What?
Looking at the design of the Post Sticky control in the post editor sidebar, it looks completely broken and out of place compared to the other controls. This PR tries to bring some harmony there.
That said, there's some a11y challenges there, so in order to keep the design correctness while also keeping things accessible, I used a visually hidden label.
Before:
After:
Testing Instructions