Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@barebones/a11y-skipper

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@barebones/a11y-skipper

A skip menu generation plugin inspired by the robust LinkedIn skip menu

Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

A11y Skipper Menu

Usage

Installation

npm install @barebones/a11y-skipper

JavaScript

import Skipper from '@barebones/a11y-skipper';

Skipper.init( {
	targetElement: '#a11y-skipper',
	mainId: '#main',
	searchId: '#search',
	menu: [
		{ label: 'Footer', id: '#footer' },
		{ label: 'Sidebar', id: '#sidebar' }
	]
} );

CSS

@import '@barebones/a11y-skipper';

HTML

<!--Matches the ID passed into Skipper.init()-->
<div id="a11y-skipper">
	<!--A no-JS fallback skip link-->
	<a href="#main">skip to content</a>
</div>

<!--Matches the searchId string passed into Skipper.init()-->
<div id="search">Your search stuff here.</div>

<!--Matches the mainId string passed into Skipper.init()-->
<div id="main">Your main content here.</div>

FAQs

Package last updated on 14 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts