Opened 9 years ago
Closed 8 years ago
#36430 closed enhancement (fixed)
Style links on Installing plugin page
Reported by: | ericlewis | Owned by: | afercia |
---|---|---|---|
Milestone: | 4.7 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Plugins | Keywords: | has-ui-feedback has-patch has-screenshots |
Focuses: | ui, accessibility | Cc: |
Description
After a plugin has been installed, links are displayed to the user that are styled as links. We have styles to make links look like buttons, so perhaps we can use those?
Attachments (7)
Change History (23)
#1
@
9 years ago
- Focuses accessibility added
Anything that increases the clickable area would be an accessibility improvement too :) I'd maybe consider to keep the secondary links with a "link style", maybe increasing the clickable area, but I'd leave this to the design/UI team. By the way, it's not just about plugins but any update that runs through update.php
will have this kind of links, with different actions depending on the kind of update performed.
+1 from me
#2
@
9 years ago
Great idea!
I'd maybe consider to keep the secondary links with a "link style", maybe increasing the clickable area
+1
#3
@
9 years ago
attachment:36430.diff adds button
and button-primary
to the Activate Plugin links as shown in the screenshot above.
I'd maybe consider to keep the secondary links with a "link style"
That makes sense as that is a link rather than a user action.
maybe increasing the clickable area
Is there any other link style that increases the clickable area to look to for a reusable implementation?
#4
@
8 years ago
- Keywords close added
Not sure this is still so relevant after the introduction of Shiny Updates v2, since this screen will be visible only when JS is off. Thoughts? :)
This ticket was mentioned in Slack in #accessibility by afercia. View the logs.
8 years ago
#6
@
8 years ago
- Keywords close removed
- Milestone changed from Awaiting Review to 4.7
Discussed a bit in today's accessibility meeting, noted this screen is still used for installs from .zip files and when JS is off so agreed to make the "Activate" link look like a primary action button, maybe removing the "pipe". Moving to 4.7.
#7
follow-up:
↓ 9
@
8 years ago
- Keywords ui-feedback added
Latest patch is mostly just a refresh, and removes the pipe character between the action button and the back link. The spacing is quite tight - is there a pattern for spacing these a bit more?
#10
@
8 years ago
Thanks @afercia - I made it consistent with #36380 . I'm keen on any thoughts on the selector used to add the 1em spacing, there aren't any selectors to make the style more specific to that screen unless we add an additional class to it.
#11
@
8 years ago
Quickly checking history, I think the button-cancel
class was originally introduced for the "Cancel" links in the publish box, see [26247] and should not be used to add a left margin, that would affect also the links in the publish box increasing the spacing a bit too much, see screenshot below:
Not sure why it is used in the Comment Moderation screen, probably should be removed. Personally, since a primary button is supposed to be unique in a page (because there should be just one primary action), I'd go with something like:
.update-php .button.button-primary { margin-right: 1em; }
and I'd remove the button-cancel
class added on the links, which also makes the patch simpler and cleaner.
#12
@
8 years ago
- Keywords has-ui-feedback added; ui-feedback removed
This is how the page currently looks