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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mark.labrecque’s picture

I 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!

Bojhan’s picture


Is 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.

LewisNyman’s picture

Here is an example from Seven's elements.css

details summary:focus {
  border-top: 3px solid #0074bd;
  outline: none;
  color: #0074bd;
  margin-top: -3px;
}
prospekt’s picture

Currently 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.

prospekt’s picture

I'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.

Bojhan’s picture

@AlexB Your at the sprint? Lets review - I am at the frontend table.

prospekt’s picture

I'm at one of the first timer tables in 403a. I'll figure out where you are though and come by in a minute.

Bojhan’s picture

Component: Seven theme » toolbar.module

Lets first tackle the Toolbar. I will make a separate issue for Seven.

Bojhan’s picture

prospekt’s picture

Status: Active » Needs review
FileSize
2.07 KB

Added more focus styles to the toolbar menu and removed unnecessary borders as well.

Status: Needs review » Needs work

The last submitted patch, 10: use_underline_as_the-2487704-8.patch, failed testing.

Status: Needs work » Needs review
zetagraph’s picture

FileSize
94.02 KB

Tested. Border is replaced with underline on focus.

screenshot-of-focus-test

lauriii’s picture

I personally liked the border style so I'm sad to see it being taken away :(

zetagraph’s picture

Status: Needs review » Reviewed & tested by the community
webchick’s picture

Status: Reviewed & tested by the community » Needs review
Issue tags: +Needs screenshots

Hm. 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?

rudraram’s picture

FileSize
44.51 KB
44.14 KB

Attaching before and after screenshots.

Before:
before

After:
after

webchick’s picture

Status: Needs review » Fixed

Thanks 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!

  • webchick committed 223f92b on 8.0.x
    Issue #2487704 by AlexB-appnovation, Bojhan, rudraram, zetagraph: Use...

  • webchick committed 7f541ef on 8.0.x
    Revert "Issue #2487704 by AlexB-appnovation, Bojhan, rudraram, zetagraph...

  • webchick committed d81c986 on 8.0.x
    Issue #2487704 by AlexB-appnovation, Bojhan, rudraram, zetagraph: Use...
webchick’s picture

Sorry, I accidentally committed the responsive image UI patch along with this one.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.