-
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
Fix permalink input field text overflow ellipsis for Firefox #57310
Fix permalink input field text overflow ellipsis for Firefox #57310
Conversation
Size Change: -3 B (0%) Total Size: 1.7 MB
ℹ️ View Unchanged
|
Flaky tests detected in 1a2c399. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7289236186
|
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 was able to confirm this strange behaviour with Firefox on Windows OS as well. It seems that reducing the top and bottom padding can solve this problem. There seems to be no problem with the top and bottom padding being zero.
I don't have a strong opinion, but how about keeping the left and right padding at their original values? Regarding this point, I would like to ask @richtabor and @jasmussen their opinions.
I don't have a strong opinion either but to me the current left and right padding seems unnecessarily too big. There's large inconsistency in the padding of the various input fields across the UI though, at the point that I woudlnt' know what the standard paddign is. I will create a separate issue. |
This PR is waiting for design feedback since almost two weeks. I will wait one day more, then I'll proceed as to not block a clear improvement. Further adjustments can always be done later. |
Hi, happy new year. Just starting up here after some end of the year AFK. Change seems fine for now. |
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 think we can ship this PR, but what about changing the value of padding to 0 $grid-unit-15
? Because it's the top and bottom padding that is causing this problem.
Otherwise, a regression could occur if this padding value were changed back from $grid-unit-15
to $grid-unit-20
as part of #57310.
@t-hamano maybe you meant to link to another PR? 57310 this PR 🙂 Re: this PR, I'd agree that ideally the |
Sorry, I meant #57394 😅 I don't think it's decided at this point what value to use for form element padding. In the future, we may decide to standardize the padding (left and right) of form elements to If the value is |
😅 Thanks @t-hamano I don't see much activity on #57394, unfortunately. Re: the padding value, I'm not sure what the reasoning behind having uneven left/right and top/bottom values is. To me, the uneven padding is just not nice to see. Screenshot:
Glad to add a comment. |
1a2c399
to
375d807
Compare
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.
LGTM! I think the added comment is easy to understand and will help prevent regressions when someone touches this section in the future.
Follow up to #53245
See comment #53245 (comment)
Ping: @WordPress/gutenberg-design
What?
The text overflow ellipsis in the post-publish panel permalink input field is broken in Firefox
Why?
Showing the ellipsis should work in all major browsers.
How?
Reduce the padding that prevents the ellipsis to work in Firefox.
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast
Screenshots before and after: