Explore if Seven's underline focus style for details/summary can work without span

Created on 21 February 2020, over 5 years ago
Updated 8 June 2025, about 1 month ago

Problem/Motivation

In #2980304: Seven theme's details/summary focus style is broken/missing in some browsers. we're trying to get Seven's underline focus style for <details><summary> to work on all browsers. Sadly, text-decoration doesn't seem to reliably work for this, so we're wrapping the title in a <span> so that text-decoration is always happening.

@lauriii wanted a follow-up to explore if it was possible to do this without changing the <details> markup at all, which is what this issue is for.

Proposed resolution

TBD.
One possible approach can be found at #3102724-96: Improve usability of core compatibility ranges on available updates report where I implemented an underline via a bottom-border instead of text-decoration. It's hacky, but seemed to work.

Remaining tasks

  1. Decide what to do.
  2. Do it.

User interface changes

TBD.

API changes

None.

Data model changes

None.

Release notes snippet

TBD, probably not.

📌 Task
Status

Active

Version

2.0

Component

Code

Created by

🇺🇸United States dww

Live updates comments and jobs are added and updated live.
  • Accessibility

    It affects the ability of people with disabilities or special needs (such as blindness or color-blindness) to use Drupal.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024