Skip to content

Instantly share code, notes, and snippets.

View marcysutton's full-sized avatar

Marcy Sutton-Todd marcysutton

View GitHub Profile
@marcysutton
marcysutton / using-ngaria.md
Last active June 4, 2020 19:11
Using ngAria
@marcysutton
marcysutton / developer-guide.md
Last active August 1, 2023 12:46
ngAria Developer Guide

The goal of ngAria is to improve Angular's default accessibility by enabling common ARIA attributes that convey state or semantic information for assistive technologies used by persons with disabilities.

##Including ngAria

Using ngAria is as simple as requiring the ngAria module in your application. ngAria hooks into standard AngularJS directives and quietly injects accessibility support into your application at runtime.

@marcysutton
marcysutton / radioButton.spec.js
Last active August 29, 2015 14:07
Angular Material Radio Button Spec
describe('radioButton', function() {
beforeEach(module('material.components.radioButton'));
it('should set roles', inject(function($compile, $rootScope) {
var element = $compile('<material-radio-group ng-model="color">' +
'<material-radio-button value="blue"></material-radio-button>' +
'<material-radio-button value="green"></material-radio-button>' +
'</material-radio-group>')($rootScope);
var rbGroupElement = element;
.warning
color: red
&h1
background-color: white
padding: 1em
text-align: center
a, button
&:hover, &:focus
color: orange
.profile-list-item
&.selected
background-color: $dark-gray
@marcysutton
marcysutton / gist:cc310fc7d4682c3cb02d
Last active August 29, 2015 14:01
Personalization for Accessibility

Personalization for Accessibility

I'm looking for web apps or online experiences that offer personalization options to users with the intent to improve accessibility, such as increased font-size, variable color scheme or layout (for example, always give me mobile). Thoughtful implementations would persist after users leave the site, so their desired settings would still be there when they came back.

Trello has an "Enable Color Blind Friendly Mode". It's pretty simplistic and probably not that useful, but their hearts are in the right place.

Have you seen any applications that do well with this type of offering?

Trello settings screenshot highlighting the Enable Color Blind Friendly Mode