-
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
Blocks: Use a dropdown menu for the block's menu #2987
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2987 +/- ##
==========================================
- Coverage 34.37% 34.29% -0.09%
==========================================
Files 196 197 +1
Lines 5809 5913 +104
Branches 1027 1058 +31
==========================================
+ Hits 1997 2028 +31
- Misses 3222 3271 +49
- Partials 590 614 +24
Continue to review full report at Codecov.
|
Pushed a little polish: I'm going to take a look at hover and focus styles again. They are a little bit all over the place — my fault. But given we have some styles that work now from an a11n perspective, and fewer styles, I think I can take a look at that cohesively, separately. It seems like the hover/focus style for the Settings item fires by just opening the menu, is that just me? The keyboard shortcut hints is probably also best addressed separately. One thing, if I open the popup on the demo content, then scroll, the popup doesn't stick to where it was opened. I sense this may be difficult to fix :( |
That's the default accessible behavior added automatically to any dropdown |
@aduth do you think #2966 could have an impact on this? Do you think we could have two popover providers, one inside the scrollable area and one outside it? or maybe provide a prop to use a relative position instead of a fixed position |
Yikes, that's a tough one. Managing multiple popover slots sounds like a pain. The offset updating on window scroll should be positioning itself based on the viewport offset of the parent node to which it's attached. If this is not working correctly, it could be related to:
|
0d6c7fa
to
01198d4
Compare
Rebased this, the scroll issue should be fixed |
Hoooraaay! 🚢 |
This is the first step towards #2984 transforming the block's menu to a dropdown menu.
Future steps would be to: