You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@salesforce-ux/a11y-components

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@salesforce-ux/a11y-components

Sample Accessible React Components

1.1.7
latest
npmnpm
Version published
Weekly downloads
3
-86.96%
Maintainers
1
Weekly downloads
 
Created
Source

The Accessibility Patterns Components

Travis npm package Coveralls

This repository includes:

  • Accessibility Patterns Components (found in the src/Components/)
  • A demo site (in src/Pages/)
  • Tests for the Accessibility Patterns Components (in src/Components/__tests__/)
  • Compiled versions of the repo:
    • in ES5 (in lib/)
    • in ES6 (in es/)

This repo is published to NPM.

Quick Start

Updating and Publishing the Components

  • Change the components in src/
  • npm run build to compile the code
  • Update the version number in package.json
  • npm publish to publish the package

Testing the Components

Testing with Karma with Enzyme and Expect in a headless PhantomJS browser (for more on that go here)

Also using expect-element to check DOM. Not sure if needed, but expect-enzyme is also installed.

To run the tests:

  • npm run test
  • continuously: npm run test:watch
  • check coverage: npm run test:coverage

Note: there's inline styles in ListboxOption.js, Menu.js, and Tooltip.js that should eventually be removed.

Keywords

react-component

FAQs

Package last updated on 01 Jun 2022

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