#44092 closed defect (bug) (fixed)
Export/Erase tools: CSS issues with `next_steps` buttons with some locales
Reported by: | audrasjb | Owned by: | azaozz |
---|---|---|---|
Milestone: | 4.9.6 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Privacy | Keywords: | gdpr has-screenshots has-patch fixed-major commit |
Focuses: | Cc: |
Description
This issue happens in fr_FR localization.
Since this string is prepared for internationalization, these button text can be quite longer than in English, so we should remove word-wrap: nowrap
CSS declaration and add some CSS fixes to make it clean.
Some screenshots below.
(note: this is a quite minor bug, so I guess it can be milestoned to 4.9.7 since 4.9.6 RC2 is about to land)
Attachments (11)
Change History (31)
#1
@
7 years ago
- Summary changed from Export/Erase tools: CSS issues with `next_steps` buttons with some languages to Export/Erase tools: CSS issues with `next_steps` buttons with some locales
#3
@
7 years ago
- Keywords needs-refresh added
Thanks @ianbelanger for this patch!
I think it can be nice to reduce the line height inside the button, and I noticed we should also add some vertical padding after line-height fixes in my live tests on my browser inspector ;-)
#4
@
7 years ago
Note regarding future tests:
we just changed these strings in fr_FR locale, so please add some words for future tests :)
#5
@
7 years ago
- Keywords has-patch added; needs-refresh removed
Thank you @ianbelanger !
I tested 44092.2.diff
on several browser and it seems nice.
But I also noticed there is some issues with mobile screens.
These issues also happened before your patch, so I think we'd better open a new ticket to fix it later, since RC2 will land in few hours.
Cheers,
Jb
This ticket was mentioned in Slack in #gdpr-compliance by audrasjb. View the logs.
7 years ago
#7
@
7 years ago
- Keywords needs-refresh added
This patch needs refresh.I'm on it. (see slack mentions)
#8
@
7 years ago
In 44092.3.diff
:
- move CSS rule to
wp-admin/css/form.css
- ensure this rule is self contained to avoid breaking changes
- fixed the main issue (tested on both desktop and mobile/tablet)
Cheers
Jb
#9
@
7 years ago
Tested this but seems we need the line-height: 1.5 in there :)
Mixture of 44092.2.diff and 44092.3.diff like this works?
.privacy_requests .next_steps .button { height: auto; word-break: break-word; white-space: unset; line-height: 1.5; padding: 4px 10px; }
#12
@
7 years ago
- Owner set to azaozz
- Resolution set to fixed
- Status changed from new to closed
In 43278:
#13
@
7 years ago
- Keywords fixed-major added
- Resolution fixed deleted
- Status changed from closed to reopened
bug happens in fr_FR locale