Allow "skip to main content" visibility to be toggled

Created on 1 November 2011, about 13 years ago
Updated 29 May 2023, over 1 year ago

A client of mine recently asked why the "skip to main content" link is hidden by default in Seven (and all other themes). According to them (major university that does a lot with accessibility), the preferred recommendation these days is to always show that link; just because someone's eyes are working doesn't mean their hands are, for instance, and they don't want to have to tab past 30 navigation links. (Their example.)

Curiously the skip link is well-themed already. We can easily show it by overriding the html.tpl.php template and just removing the element-invisible class, but then we're subtheming Seven just for that, which seems odd. Given that it's already themed out, making a checkbox in the theme settings page seems more logical to me.

Would this make sense to anyone else before I try writing it? And if so, could this be backported to Drupal 7? (Yes it's new UI strings, but only NEW strings.) I'd rather not have to give my client a patched Seven just for that.

Feature request
Status

Postponed

Version

11.0 🔥

Component
Theme 

Last updated about 11 hours ago

Created by

🇺🇸United States Crell

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

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

  • Accessibility

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

  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

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

  • 🇨🇦Canada mgifford Ottawa, Ontario

    I'd like to see some user research behind visible vs hidden skip links. I don't know that we can make the decision based on the discussions here thus far.

Production build 0.71.5 2024