Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

A minimal no-theme Tabs web component.

Notifications You must be signed in to change notification settings

filamentgroup/seven-minute-tabs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ This project is archived and the repository is no longer maintained.

Seven Minute Tabs

Tabs web component. Based heavily on the Tabs with Automatic Activation example from WAI-ARIA Authoring Practices

Installation

npm install @zachleat/seven-minute-tabs

Features

  • Code converted to be a web component.
  • All styles have been removed and this component operates correctly without CSS. For longevity of the code all styling is left to independent project-specific themes.
  • Progressively enhances from <a> with anchor links pointing to content panels.
  • Adds hidden attribute to panels using JavaScript so that content still shows when JavaScript is not available.
  • Adds tabindex using JavaScript so that content remains accessibile without JavaScript.
  • Arrow key support. Adjusts for vertical aria-orientation values.
  • Home/end key support.
  • (Option to delete tabs was removed from the original example)

License

About

A minimal no-theme Tabs web component.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 84.6%
  • HTML 15.4%