All Projects → tiagoporto → accessibility-buttons

tiagoporto / accessibility-buttons

Licence: MIT license
Buttons to add/remove contrast and increase/decrease font size.

Programming Languages

javascript
184084 projects - #8 most used programming language
stylus
462 projects
Handlebars
879 projects
HTML
75241 projects

Projects that are alternatives of or similar to accessibility-buttons

a11ycolor
🌈 Generate the nearest accessible color
Stars: ✭ 29 (-52.46%)
Mutual labels:  accessibility, contrast
buttonbuddy
Learn about accessible button contrast then generate your own accessible button color palette
Stars: ✭ 60 (-1.64%)
Mutual labels:  accessibility, buttons
SAPC-APCA
APCA (Accessible Perceptual Contrast Algorithm) is a new method for predicting contrast for use in emerging web standards (WCAG 3) for determining readability contrast. APCA is derived form the SAPC (S-LUV Advanced Predictive Color) which is an accessibility-oriented color appearance model designed for self-illuminated displays.
Stars: ✭ 266 (+336.07%)
Mutual labels:  accessibility, contrast
pick-a-good-color
Choose the boldest and most accessible color for a given background.
Stars: ✭ 18 (-70.49%)
Mutual labels:  accessibility, contrast
editoria11y
A user-friendly automatic content accessibility checker.
Stars: ✭ 23 (-62.3%)
Mutual labels:  accessibility
giveaways-example
Example for @Nuggies-bot NPM
Stars: ✭ 27 (-55.74%)
Mutual labels:  buttons
public-transit-tools
Tools for working with GTFS public transit data in ArcGIS
Stars: ✭ 126 (+106.56%)
Mutual labels:  accessibility
svelte-accessible-dialog
An accessible dialog component for Svelte apps
Stars: ✭ 24 (-60.66%)
Mutual labels:  accessibility
Coursera---Using-Python-to-Access-Web-Data
Here is All Weeks Assignment for Using Python to Access Web Data Course on Coursera
Stars: ✭ 36 (-40.98%)
Mutual labels:  accessibility
dislash.py
A Python wrapper for discord slash-commands and buttons, designed to extend discord.py.
Stars: ✭ 172 (+181.97%)
Mutual labels:  buttons
csvConf2021
Data visualization accessibility talk for csv,conf,v6 (2021)
Stars: ✭ 19 (-68.85%)
Mutual labels:  accessibility
WebSight
Aiding the visually impaired through real time augmented reality, AI object detection, WebGL shaders effects such as edge detection, and colour adjustments.
Stars: ✭ 26 (-57.38%)
Mutual labels:  accessibility
meetup-event-planner
GraphQL on Rails Demo Application and React Front End for planning meetup events
Stars: ✭ 22 (-63.93%)
Mutual labels:  accessibility
simply-djs
A Simple, Easy and Beginner friendly Discord.js Package for everyone. Uses Discord.js v13
Stars: ✭ 62 (+1.64%)
Mutual labels:  buttons
a11y-components
No description or website provided.
Stars: ✭ 32 (-47.54%)
Mutual labels:  accessibility
aria-collapsible
A lightweight, dependency-free JavaScript module for generating progressively-enhanced collapsible regions using ARIA States and Properties.
Stars: ✭ 25 (-59.02%)
Mutual labels:  accessibility
theBookOfNoah
Everything ive learned developing web applications
Stars: ✭ 22 (-63.93%)
Mutual labels:  accessibility
a11ycasts
Code samples from the A11ycasts YouTube series
Stars: ✭ 40 (-34.43%)
Mutual labels:  accessibility
fenrir
An TTY screenreader for Linux.
Stars: ✭ 33 (-45.9%)
Mutual labels:  accessibility
hocus-focus
A keyboard navigation horror game.
Stars: ✭ 70 (+14.75%)
Mutual labels:  accessibility

Open Source Love

Accessibility Buttons

LIKED ? Leave a : 😞

Release Downloads License

Coverage Status devDependencies Status

Buttons to add/remove contrast and increase/decrease font size.

Read in other languages.

🇧🇷

Install

npm install accessibility-buttons --save

Usage

Import

  • accessibility-buttons/dist/css/accessibility-buttons.css
  • accessibility-buttons/dist/js/accessibility-buttons.js

Add buttons

<button type="button" data-accessibility="font">+A</button>
<button type="button" data-accessibility="contrast">Add Contrast</button>

Initialize after DOM ready

accessibilityButtons()

Note: Note: Font size works only with em or rem units.

Settings

To set up buttons names and aria-labels, use the following parameters.

// default values
accessibilityButtons({
    font: {
        nameButtonIncrease: '+A',
        ariaLabelButtonIncrease: 'Increase Font',
        nameButtonDecrease: '-A',
        ariaLabelButtonDecrease: 'Decrease Font'
    },

    contrast: {
        nameButtonAdd: 'Add Contrast',
        ariaLabelButtonAdd: 'Add Contrast',
        nameButtonRemove: 'Remove Contrast',
        ariaLabelButtonRemove: 'Remove Contrast'
    }
})

Font size and contrast colors could be customized only overwritting class values.

Example:

body {
    font-size: 1em;
    color: #a9a9a9;
    background: #000;
}

body input,
body textarea,
body select,
body button {
/* The default font-size of these elements is approximately 20% less than the body */
  font-size: 0.9em;
}

body.accessibility-font {
    font-size: 1.5em;
}

body.accessibility-font input,
body.accessibility-font textarea,
body.accessibility-font select,
body.accessibility-font button {
/* The default font-size of these elements is approximately 20% less than the body */
  font-size: 1.2em;
}

body.accessibility-contrast {
    color: #000;
    background: #a9a9a9;
}

Contributing

Check how to contribute.

Credits

Accessibility arial-label tip - Bruno Pulis

Included the $ sign in the variable name of the cached elements for easy identification - Adler Parnas

License

Accessibility Buttons is released under the terms of the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].