Opened 8 years ago
Closed 7 years ago
#31721 closed defect (bug) (invalid)
"Add new" button bug
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Priority: | lowest | |
Severity: | minor | Version: | |
Component: | General | Keywords: | has-patch |
Focuses: | ui | Cc: |
Description
I noticed a bug when using the new Theme Switcher in the Customizer. For large texts, such as the Russians, the button moves to the next line and looks disgusting.
Attachments (7)
Change History (30)
#1
@
8 years ago
- Keywords needs-patch good-first-bug added
- Milestone changed from Awaiting Review to 4.2
- Severity changed from normal to minor
white-space: nowrap;
should fix it. Related: #31289 changed the button style and position, but probably doesn't fix this.
#2
@
8 years ago
- Keywords has-patch added; needs-patch removed
- Owner set to bilacoder
- Status changed from new to assigned
Hi @bilacoder, thanks for the patch!
In 31721.diff, we should probably more-closely target the elements for that specific Customizer control, as things like .wrap h2
are used in many other places in the admin, not just the Customizer. The same goes for floating #customize-controls a
, as that affects links in basically any Customizer control.
Targeting .customize-themes-panel
as the top-level element might be a better starting place.
#3
@
8 years ago
Actually, this definitely needs to wait for #31289 or be combined in there. The selector is definitely changing, and with .button
this may not even be an issue, haven't tried it.
#7
@
8 years ago
- Component changed from Customize to General
- Keywords needs-patch added; has-patch removed
- Summary changed from Theme switcher: "add new" button bug to "Add new" button bug
#8
follow-up:
↓ 10
@
8 years ago
- Priority changed from normal to lowest
If this is really an issue (or potential issue) with all add-new buttons, I don't think it blocks 4.2.
Can we get UI feedback here on what should be done?
This ticket was mentioned in Slack in #design by sam. View the logs.
8 years ago
#10
in reply to:
↑ 8
;
follow-up:
↓ 11
@
8 years ago
- Keywords has-patch added; needs-patch removed
Replying to samuelsidler:
If this is really an issue (or potential issue) with all add-new buttons, I don't think it blocks 4.2.
It became much more prominent with the new theme switcher in Customizer, which squeezes the heading into a narrow column. We don't do that in the rest of the admin.
.wrap .add-new-h2 { white-space: nowrap }
appears to resolve this: 31721.2.after.png.
#11
in reply to:
↑ 10
;
follow-up:
↓ 13
@
8 years ago
Replying to SergeyBiryukov:
.wrap .add-new-h2 { white-space: nowrap }
appears to resolve this: 31721.2.after.png.
As I mentioned above, going general on the selector might have other negative effects elsewhere in the admin. See any other issues in changing that to nowrap
?
#13
in reply to:
↑ 11
;
follow-up:
↓ 14
@
8 years ago
Replying to DrewAPicture:
As I mentioned above, going general on the selector might have other negative effects elsewhere in the admin.
But the point is to fix this for all the "Add New" headings, per comment:4.
See any other issues in changing that to
nowrap
?
Nope.
#14
in reply to:
↑ 13
;
follow-up:
↓ 15
@
8 years ago
Replying to SergeyBiryukov:
Replying to DrewAPicture:
As I mentioned above, going general on the selector might have other negative effects elsewhere in the admin.
But the point is to fix this for all the "Add New" headings, per comment:4.
See any other issues in changing that to
nowrap
?
Nope.
Sorry; when i tested it the nowrap not all the link can be seen pm very large string values the a tag rendered beyond screen edge
#15
in reply to:
↑ 14
@
8 years ago
Replying to MechaCoder:
Sorry; when i tested it the nowrap not all the link can be seen pm very large string values the a tag rendered beyond screen edge
Could you share a screenshot?
This ticket was mentioned in Slack in #core-customize by helen. View the logs.
8 years ago
#17
@
8 years ago
- Milestone changed from 4.2 to Future Release
Punting this from 4.2 as it's a long-existing thing on admin screens, for the theme switcher in the customizer both @ocean90 and I would rather just remove it completely: #31837.
#18
follow-up:
↓ 19
@
8 years ago
sorry for the late response but still trying to work things out :-(
@helen - also on the page and post listing page, it a button i uses often to copy client built content?
also my noticing may have pushed the sting to far, but i was thinking of poeple with blackberrys and very small phones. i hope i haven't offended anyone _, also if some could tell me where the code is being rendered the function's file than i think i have a fix which will make it elegant, still new to core
#19
in reply to:
↑ 18
@
8 years ago
Replying to MechaCoder:
No apologies necessary, thanks for the screenshot.
I don't think "Add New" would be that long in any translation :) But yeah, a more elegant solution would be nice.
To find the code, I'd suggest searching for 'Add New'
in core files, there's a separate string for each screen.
#20
@
8 years ago
@SergeyBiryukov no my way is not working sorry i will continue working on it but i think your fix is the most elegant for a moment sorry for holding up the ticket
Bug