-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Try revamped Document Bar #62527
base: trunk
Are you sure you want to change the base?
Try revamped Document Bar #62527
Conversation
Size Change: +276 B (+0.02%) Total Size: 1.76 MB
ℹ️ View Unchanged
|
@stokesman thanks for working on this ❤️ A few issues to address though. The heading shouldn't be a H1. There's already a visually hidden H1 in the page. As such, there are now two H1. That's not OK for semantics and accessibility. While this issue may be not entirely new, this is a good opportunity to fix it. It should be changed to a H2. Screenshot: When editing some objects, e.g. a template, the heading gets an I wouldn't recommend to overlay the button and heading, then using
Roughly, something like in this screenshot (focus set on both buttons to better illustrate): Lastly, as also noted elsewhere, the Document bar should not use the |
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.
Please see previous comment.
What?
An attempt to fix/improve the Document Bar.
Why?
These points are all part of #51460, though I'm not sure this completely resolves that issue.
How?
<h1>
and<div>
out of the<button>
)This change lead to the substantial design difference in this PR. Currently the background and its hover state are on the root element and each button needs its own. Putting the same background on the buttons to preserve the design isn’t enough. Their border-radius would have to be removed on the sides the buttons meet. Then during transitions the buttons fading and overlapping ruin the effect*
aria-haspopup
attribute*Perhaps this can be retried as it was before revising the animation and now it possibly could work.
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast
DocumentBar.mp4