Giter Club home page Giter Club logo

accessible-material's Introduction

Accessible Angular 6 and Angular Material Example

This example is included in an application that is deployed on GitHub. It was created using the Angular CLI and Angular Material. Accessibility test results are included in the application.

To see the working demo, go to Angular 6 and Angular Material Example.

Select the link in the left navigation pane of the demo to view accessible Angular Material cards and form controls.

To improve accessibility, the following have been added to the application:

Angular Material automatically includes the following on the form controls in this example:

  • mat-form-field uses the label tag to automatically create the aria-label for the input
  • mat-select automatically adds role="listbox" to the component and role="option"to the select options.
  • mat-radio-button automatically adds input type="radio" to the component.
  • mat-checkbox uses an internal input type="checkbox". This internal checkbox receives focus and is automatically labelled by the text content of the mat-checkbox element. In addition, aria-checked="false" is added and automatically changes to aria-checked="true" when the checkbox is checked.
  • tabindex="0" Note: The Angular Material web site lists the built-in accessibility for each component.

Installation Instructions

Follow these steps to install the Accessible Angular 6 and Angular Material Example application:

  • Clone or download the accessible-material repository.
    • If you download the zip file extract it before proceeding.
  • From the command-line navigate to the accessible-material (clone) or accessible-angular-master (unzip) directory.
  • Type: npm install
  • Type: ng serve --open

accessible-material's People

Contributors

snidersd2 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.