Problem/Motivation
We currently use many different ways to hover/focus on items. Many of these styles were introduced in the last few months. Sadly this was not in alignment with the style guide.
For the style guide we propose for all text elements to have the "underline" as focused style. This means fieldsets, vertical tabs, toolbar links, etc.
Proposed resolution
- Use underline as focused style (were appropriate as hover too)
Remaining tasks
User interface changes
API changes
Comment | File | Size | Author |
---|---|---|---|
#17 | after.png | 44.14 KB | rudraram |
#17 | before.png | 44.51 KB | rudraram |
#13 | Welcome_to_test___test.png | 94.02 KB | zetagraph |
#10 | use_underline_as_the-2487704-8.patch | 2.07 KB | prospekt |
#5 | drupal-focus-states-admin-2487704.patch | 790 bytes | prospekt |
Comments
Comment #1
mark.labrecqueI would be happy to tackle this, but could I get some more information describing what is the desired effect here? Perhaps some screenshots might be helpful here?
Thanks!
Comment #2
Bojhan CreditAttribution: Bojhan as a volunteer commentedIs what I am proposing. If you look at Drupal now you will see at odd places we have a border-left or border-top. We want that to be underline on the text for the focused state.
Comment #3
LewisNymanHere is an example from Seven's elements.css
Comment #4
prospekt CreditAttribution: prospekt as a volunteer commentedCurrently at the Drupalcon LA core sprint - I'm going to take a look at this issue considering it hasn't been updated for two days.
Comment #5
prospekt CreditAttribution: prospekt as a volunteer commentedI've uploaded a patch that adds some underline focus states, but we may need a wider sweep of the seven theme to see where some other focus states are missing.
Comment #6
Bojhan CreditAttribution: Bojhan as a volunteer commented@AlexB Your at the sprint? Lets review - I am at the frontend table.
Comment #7
prospekt CreditAttribution: prospekt as a volunteer commentedI'm at one of the first timer tables in 403a. I'll figure out where you are though and come by in a minute.
Comment #8
Bojhan CreditAttribution: Bojhan as a volunteer commentedLets first tackle the Toolbar. I will make a separate issue for Seven.
Comment #9
Bojhan CreditAttribution: Bojhan as a volunteer commented#2489450: Remove unnecessary focused/hover effects on details and vertical tabs
Comment #10
prospekt CreditAttribution: prospekt as a volunteer commentedAdded more focus styles to the toolbar menu and removed unnecessary borders as well.
Comment #13
zetagraph CreditAttribution: zetagraph commentedTested. Border is replaced with underline on focus.
Comment #14
lauriiiI personally liked the border style so I'm sad to see it being taken away :(
Comment #15
zetagraph CreditAttribution: zetagraph commentedComment #16
webchickHm. Can we maybe get some before/after screenshots here or something, please? To my untrained eye, the toolbar is already showing an underline without this patch on hover. And I don't see any borders?
Comment #17
rudraram CreditAttribution: rudraram at Axelerant commentedAttaching before and after screenshots.
Before:
After:
Comment #18
webchickThanks a lot, rudaram! That's much clearer.
Like laurii I actually kinda prefer the way it currently is, but I can see points for consistency.
Ergo, committed and pushed to 8.0.x. Thanks!
Comment #22
webchickSorry, I accidentally committed the responsive image UI patch along with this one.