Opened 13 years ago
Closed 12 years ago
#21196 closed defect (bug) (fixed)
Remove obsolete style for "Delete Permanently" link for attachments
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | UI | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
If EMPTY_TRASH_DAYS
is set to 0 (zero) in wp-config.php
, "Delete Permanently" link for attachments is misaligned (see the screenshots).
Attachments (8)
Change History (25)
#3
@
13 years ago
Good eye! :-)
I'd drop the #media-items a.delete style in wp-admin/css/media.dev.css (like you've done here), but I wouldn't add the new #media-items a.delete style to wp-admin/css/wp-admin.dev.css.
Reason being: the "Use as feature image" link already has a margin-right setting of 20px.
#4
follow-up:
↓ 5
@
13 years ago
Thanks, then it sounds like the 5px padding for .del-link
should also be removed (21196.3.patch).
21196.4.patch is an attempt to also unify .del-link
(Delete) and .delete
(Delete Permanently & Move to Trash).
#5
in reply to:
↑ 4
@
13 years ago
Replying to SergeyBiryukov:
Looks good to me. But you should probably keep the padding-right: 5px; in wp-admin-rtl.dev.css
#6
follow-up:
↓ 7
@
13 years ago
wp-admin-rtl.dev.css
should generally mirror the changes in wp-admin.dev.css
, so I guess it would make sense to remove it from there as well.
#7
in reply to:
↑ 6
;
follow-up:
↓ 8
@
13 years ago
Replying to SergeyBiryukov:
I'm an idiot - please forget my last comment. :-) I tested 21196.4.patch with EN, and AR language settings. Everything looks good, with one minor exception - by removing the ".delete" class, hovering over the link no longer turns the background of the link red.
#8
in reply to:
↑ 7
;
follow-up:
↓ 9
@
13 years ago
Replying to lessbloat:
by removing the ".delete" class, hovering over the link no longer turns the background of the link red.
Yes, but the red background seems inconsistent with the usual "Delete" link (without EMPTY_TRASH_DAYS
set to zero). Not sure if the background is necessary.
Having two similar links is confusing though, as mentioned in ticket:21194:2 and ticket:21194:9, since they essentially do the same thing, unless I'm missing something. We could probably unify them as well, but that needs a bit more investigation. Related: ticket:11149:19.
#9
in reply to:
↑ 8
@
13 years ago
Replying to SergeyBiryukov:
We could probably unify them as well
As you alluded to, that seems like a whole other discussion/ticket. Personally I like the red background on hover for delete links as it provides a quick visual "Wait do I really want to do this" without requiring a confirmation dialog (but that's just my 2 cents).
#10
@
13 years ago
Agreed, so 21196.3.patch is the way to go then.
#14
@
12 years ago
I tried to look at confirming this ticket really quickly, but I don't see this behavior in the old media upload/insert dialog (within either Gallery and Media Library tabs). The "Delete Permanently" link appears to be aligned. Maybe I'm looking in the wrong place? (Where I see this looks exactly like the cropped screenshots attached though - the working one)
However, I also wanted to note that it looks like this UI is being replaced entirely by this maybe? So is this going to be relevant? I couldn't even pull up any dialog or page that contains this UI (that I can find) if I were assuming that the new Beta Media button is only available.
I did checkout r21592 in order to test this though (without beta media), and just didn't see the misalignment.
Tested with Chrome.
#15
@
12 years ago
The button class was changed from .delete
to .delete-permanently
in [21504], so the #media-items a.delete
selector in media.css
no longer applies.
It should be removed as obsolete now, so 21196.5.patch is still relevant.
21196.2.patch gives "Delete Permanently" link the same 5px padding as "Delete" has (not sure if it's necessary though).
We could also probably unify
del-link
(Delete) anddelete
(Delete Permanently) classes.