-
Notifications
You must be signed in to change notification settings - Fork 58
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
Block navigation toolbar items overlap on media-text #1677
Comments
Hello @koke, I've checked that issue (after pulling all new changes from gutenberg) and right now on vertical mode items within
|
That seems fine now, but I'm thinking this might break in other cases where translations for the block title might be longer. When the text doesn't fit, the text should be ellipsized or cut off, but the icons should not overlap |
I've discovered that navigation
Currently |
Another solution can be changing (decreasing) the title |
Can we set a max font-size on the label? I think it's inevitable that we'll run into issues w/ long names (esp translations), but a max size might help limit the issue. |
I'm thinking right now of kinda compromise between setting a max font-size along with ellipsing long names. What I mean is to use props called maxFontSizeMultiplier and ellipsizeMode. It allows us to give the user a full name if it's not so long or ellipsed a bit in the wrong case.
|
Ah ok. As you mentioned, not great for a11y, but I think it's okay as a start. I wonder if we do something when that's long-pressed to show a tooltip or something other thing? Also worth mentioning that the block dev guidelines recommend short names for all block names, so if a block-maker uses a super-long name they're probably running into these types of issues in more places. |
To Reproduce
Steps to reproduce the behavior:
Screenshots
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: