-
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
Improve command palette rendering on smaller viewports #53661
Conversation
Size Change: +870 B (0%) Total Size: 1.51 MB
ℹ️ View Unchanged
|
Flaky tests detected in d168096. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5862306973
|
Seems fine, but should the radius be changed like that? To me this counts as a modal and can keep its modal radius. Not the strongest opinion in the world, just curiuos as to the intent. |
Should we add some margin on mobile, and keep the radius, so it isn't styled as a "bottom card" like that? |
CC: @jameskoster I think you polished these recently. |
You mean for the modal component? Perhaps. |
I meant an override just for the command palette. But I guess the larger question is how that should behave on mobile altogether, so a big old "depends" on that one. |
I could go quite a few ways on this one, including just picking one and revisiting as we learn more about this, so I'm happy to defer. I think the only change I'd feel slightly more about is to retaining the 4px radius :) |
Just realized I used the wrong unit — I'll fix :) |
@jasmussen I updated the description with before/after recordings of the change. |
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.
Let's try it!
What?
Minor adjustment to
.commands-command-menu
to improve how it displays on mobile.Testing Instructions
Screenshots or screencast
Before
CleanShot.2023-08-15.at.13.30.37.mp4
After
CleanShot.2023-08-15.at.13.28.12.mp4