Opened 6 years ago
Closed 5 years ago
#46304 closed defect (bug) (fixed)
On the privacy request table buttons switch to break-word for legibility
Reported by: | garrett-eclipse | Owned by: | garrett-eclipse |
---|---|---|---|
Milestone: | 5.4 | Priority: | normal |
Severity: | normal | Version: | 4.9.6 |
Component: | Privacy | Keywords: | has-patch has-screenshots commit |
Focuses: | ui | Cc: |
Description
Hello,
Depending on the screensize the buttons in privacy request tables start to downgrade breaking to 2+lines depending on locale. Currently the css is break-all which causes the string to become illegible. Switching to break-word in the css will allow the button text to be readable.
Gif Example;
https://gyazo.com/5aa60b8dda2eacbd23e9c95086ac8e3d
The breakdown for english starts around 1020 down to 920. For other locales and users with zoomed browsers the breakpoints will differ as to when this falls apart.
The css for this can be found here - https://github.com/WordPress/WordPress/blob/173e0f9ee7b7f7dee03c351f2f9bf968759eb20e/wp-admin/css/forms.css#L1141
Thanks
Attachments (4)
Change History (13)
#1
follow-up:
↓ 2
@
6 years ago
- Component changed from Administration to Privacy
- Focuses accessibility privacy removed
#2
in reply to:
↑ 1
@
6 years ago
- Keywords has-patch 2nd-opinion ui-feedback added
- Owner set to garrett-eclipse
- Status changed from new to assigned
Replying to afercia:
Seems this was intentional, see [43282]. Worth investigating on the reasons for that change, see the related ticket.
Thanks @afercia I see what you mean with the second commit switching to break-all. I went through Slack and Trac surrounding the ticket and couldn't find any explanation provided. Maybe @azzozz has information as he made both commits. Only thought I had was the original CSS was word-break: break-word;
which isn't an official value and is only supported on Webkit browsers.
Reference - https://caniuse.com/#search=word-break
*Also it seems to indicate break-all
is only partially supported.
From my investigation on Trac and Google is that the norm for this sort of thing appears to be going with word-wrap: break-word;
as it's most widely supported.
Reference - https://caniuse.com/#search=overflow-wrap
Other Trac tickets/changes that went with word-wrap: break-word;
:
#meta1157 #36207 #22554 #22359
Replying to afercia:
I'd also note the CSS value
unset
used forwhite-space
is not supported by IE11 and shouldn't be used.
Thanks for pointing that out, I supplied a patch where I switched it to 'normal'. Is that a fairly safe approach or do you recommend a different setting?
This ticket was mentioned in Slack in #design by karmatosed. View the logs.
5 years ago
#4
@
5 years ago
word-wrap: break-word;
sounds like a good solution. Would be great to see some before/after screenshots or gifs for final confirmation.
@
5 years ago
Refreshed patch to apply word-wrap: break-word
and white-space: normal
to .privacy_requests .next_steps .button
#5
@
5 years ago
- Keywords 2nd-opinion ui-feedback removed
- Milestone changed from Awaiting Review to 5.4
Hi @nrqsnchz
I've refreshed the patch in 46304.2.diff and provided before and after gifs for you to confirm. If you could review I think this is a good 5.4 candidate so if you're happy with it feel free to mark for commit.
#6
@
5 years ago
hey @garrett-eclipse!
Gifs from the new patch look good! 👍
if you're happy with it feel free to mark for commit
Apologies, I've never marked a ticket for commit and I'm not sure how to do it. I don't see a keyword or focus that would mark it for commit.
#7
@
5 years ago
- Keywords has-screenshots commit added
- Status changed from assigned to accepted
Thanks for confirming @nrqsnchz
commit
is a Workflow Keyword to be added once the patch is fully tested/vetted and ready for a final committers review. I've updated the ticket to mark it for commit.
Seems this was intentional, see [43282]. Worth investigating on the reasons for that change, see the related ticket.
I'd also note the CSS value
unset
used forwhite-space
is not supported by IE11 and shouldn't be used.