Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-a11y-landmarks

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-a11y-landmarks

An ember addon for easier creation of correct landmark regions for better accessibility.

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

ember-a11y-landmarks

Latest NPM release TravisCI Build Status

Assistive technology (AT) (like screen readers) needs the right HTML semantic elements and/or roles in order to parse the page correctly. This addon helps make it easier for Ember developers by adding the correct role to the HTML element.

Installation

ember install ember-a11y-landmarks

Usage

  • Use these like blocks.
  • Define the tagName unless it's a div, then define the landmarkRole instead.
  • Use the comments in the component as a guide.

Template

Example: Header

To use as header element, put this in your template:

{{#a11y-landmark tagName="header"}}
    ...
{{/a11y-landmark}}

The element is then a <header> and the role="banner" is added automatically.

Example: Form/Search

If defining a form, no additional landmarkRole is required. However, if the form will be used as a search, then the landmarkRole value should be set to search.

Form:

{{#a11y-landmark tagName="form"}}
    ...
{{/a11y-landmark}}

Search:

{{#a11y-landmark tagName="form" landmarkRole="search"}}
    ...
{{/a11y-landmark}}

Contributions

Contributions to this project are encouraged.

Keywords

FAQs

Package last updated on 04 Jul 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc