-
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
DateTime Component: Fix sizing of help info #34370
Conversation
@jasmussen I've just added you as a reviewer since I see you've (fairly) recently done some work on this component 🙂 |
Size Change: +48 B (0%) Total Size: 1.04 MB
ℹ️ View Unchanged
|
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.
Yep, nice one.
Sorry I didn't catch this one when I initially removed the min-width, but ultimately I do think it's the responsibility of each of these components individually to set the min-width. So thanks for doing that!
Thanks for reviewing @jasmussen, I agree, it's better for the consumers of the component to define their own requirements for layout and sizing 👍 And thanks for mentioning the mixin, it wasn't intentional skipping using that — I saw there were a couple of other I saw that there was an existing z-index layer for focused button components, so I've re-used that one instead of adding a separate one for this case. Let me know if you think it could do with tweaking further, otherwise I'll merge in this PR tomorrow 🙂 |
3d6cbc6
to
99e25be
Compare
Thanks for the fix. I think it's always best practice to use the mixin, but especially in cases of "just elevate this by one" it can be okay to do without it. Mostly because z-index contexts aren't absolute and new contexts change them, the mixin makes most sense for those items that are all in the same stacking order. It seems like you rebased at a bad time, tests are failing consistently on this one for some reason. Might want to try giving it a fresh one. |
99e25be
to
aff59a8
Compare
Thanks for the extra context Joen, this is all super helpful as I learn about more corners of the repo that I haven't explored before 😀 I've given this another rebase and all the CI actions are passing, so I'll merge it in (looks like the issue was resolved in #34422). Thanks again! |
Description
This PR adds a couple of styling fixes to the DateTime component, to ensure that the help info view has an adequate minimum width, and that the focus styling on the Calendar Help button displays correctly.
z-index
to the buttons in the DateTime picker to ensure that when the Reset or Calender Help buttons are clicked/focused that the top border of the focus style is visibleHow has this been tested?
Manually, select the Publish date from the Status & visibility section in a post's settings panel.
Screenshots
Types of changes
Bug fix (non-breaking change which fixes an issue)
Checklist:
*.native.js
files for terms that need renaming or removal).