An open API service indexing awesome lists of open source software.

https://github.com/jansensan/cra-focus-visible

Example of how to use the focus-visible polyfill in a React project.
https://github.com/jansensan/cra-focus-visible

a11y a11y-react create-react-app focus focus-visible react

Last synced: about 1 month ago
JSON representation

Example of how to use the focus-visible polyfill in a React project.

Awesome Lists containing this project

README

          

# Using Create React App and `focus-visible`

This is an example of how to use the [`focus-visible` polyfill](https://github.com/WICG/focus-visible) in a React project.

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Run this Project on Your Computer

### Install Dependencies

`yarn`

### Run the Project

- `yarn start`
- Go to in a browser

## References

- [Understanding Success Criterion 2.4.7: Focus Visible | W3C WCAG](https://www.w3.org/WAI/WCAG21/Understanding/focus-visible)
- [_Focus Ring!_ | A11ycasts #16 - YouTube](https://www.youtube.com/watch?v=ilj2P5-5CjI)
- [`:focus-visible` pseudo-class | MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible)
- [`focus-visible` polyfill | GitHub](https://github.com/WICG/focus-visible)
- [Create a New React App | React](https://reactjs.org/docs/create-a-new-react-app.html)

### Related Readings and Content

- [The Accessibility of Styled Form Controls | GitHub](https://github.com/scottaohara/a11y_styled_form_controls)
- [Most Common HTML Elements | GitHub](https://github.com/jansensan/most-common-html-elements)