#46961 closed defect (bug) (fixed)
Privacy tool email field stretches past 100% on mobile
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 5.2.1 | Priority: | normal |
| Severity: | minor | Version: | 4.9.6 |
| Component: | Privacy | Keywords: | has-patch has-screenshots fixed-major |
| Focuses: | ui, administration | Cc: |
Description
I have found a issue in page - Wp-admin > Tools > Erase personal data. The Email input's width is not set according to the display width in mobile devices. So, it breaks the page design.
Attachments (6)
Change History (17)
#1
@
7 years ago
- Focuses privacy added; accessibility removed
- Milestone changed from Awaiting Review to 5.2.1
- Severity changed from major to minor
- Version changed from trunk to 4.9.6
Thanks for this, @anischarolia. And welcome to Trac!
I am able to reproduce the issue. Your suggested change does fix the issue, but I worry this will have adverse effects elsewhere since #46961.patch adds a width property to such a broad declaration. Wondering if the .wp-privacy-request-form input definition would be better to use.
#2
@
7 years ago
- Summary changed from Desing breaking issue in mobile device to Privacy tool email field stretches past 100% on mobile
#4
@
7 years ago
All the input fields should be "automatically" responsive based on the rules in forms.css.
On large screens, the inputs with the CSS class regular-text have a fixed width of 25em: https://core.trac.wordpress.org/browser/trunk/src/wp-admin/css/forms.css?rev=44895#L378
On small screens, their width is set to 100% but only if they're within a table with the CSS class form-table (not sure why), which is not the case in the Privacy pages: https://core.trac.wordpress.org/browser/trunk/src/wp-admin/css/forms.css?rev=44895#L1452
I'd consider to change the responsive selector .form-table input.regular-text to be just .regular-text but I'd also suggest to test thoroughly across all the admin pages to catch edge cases.
@
7 years ago
updated patch file for targetting just .regular-text in responsive(<=782px) with max-width:100%
#5
@
7 years ago
@afercia yes, targeting just .regular-text in responsive will actually solve the issue. But giving it width:100% will stretch it to full width of display, which is too much for device having display width just before 782px. So I suggest to use max-width:100%, it will help us to keep the input width as it was on large screens until it comes equal to the device screen. And then it will go for 100%. I have updated the patch file named #46961(2).patch. Please review it.
#6
@
7 years ago
- Keywords commit added; needs-testing removed
#46961(2).patch fixes the issue with no repercussions to other inputs within the admin.
Thanks for the ticket and patch @anischarolia. Marking for commit in 5.2.1
patch file for the ticket