Problem/Motivation

As shown on the Design System's Tab component page, the aria-selected attribute should be only on the tab buttons and not on the panels.

See also: Example of Tabs with Automatic Activation | APG | WAI | W3C

Steps to reproduce

  1. Inspect the tab panel preview markup.
  2. Observe the presence of an aria-selected attribute on the tab panel wrapper element.

Proposed resolution

Remove handling of the aria-selected attribute from the tab panel pattern Twig file.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

spryah created an issue. See original summary.

spryah’s picture

Status: Active » Needs review

pdureau made their first commit to this issue’s fork.

  • pdureau committed 5b02b6c1 on 1.0.x authored by spryah
    Issue #3381843 by spryah: remove "aria-selected" attribute from tab...
pdureau’s picture

Title: Remove unnecessary ARIA attribute from tab panel » [beta4] Remove unnecessary ARIA attribute from tab panel
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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