bridgetownrb / bridgetown

A next-generation progressive site generator & fullstack framework, powered by Ruby
https://www.bridgetownrb.com
MIT License
1.13k stars 114 forks source link

feat: Accessibility testing #288

Closed bkmgit closed 7 months ago

bkmgit commented 3 years ago

Summary

Before deploying a website, it may be helpful to do some accessibility testing.

Motivation

Ensure that sites built with Bridgetown are accessible and make sure automated checks can be done during development

Guide-level explanation

Reference-level explanation

Possible tools that can be integrated as tests include

Drawbacks

Increases complexity of the project

Unresolved Questions

Best way to implement the testing

jaredcwhite commented 3 years ago

Thanks for the great idea! I think this is something we could maybe add to our bundled configurations feature alongside things like PurgeCSS or Minitest.

bkmgit commented 3 years ago

Configurations folder seems reasonable.

Documentation on testing and automation would probably also be needed.

One option is cypress-axe , an example of using this is available at https://github.com/leonardofaria/cypress-accessibility-example

bkmgit commented 3 years ago

Another option is webhint which seems to offer more functionality.

sandstrom commented 1 year ago

I'm doing some issue gardening 🌱🌿 🌷 and came upon this issue.

Maybe this is something that could live in plugins, outside Bridgetown?

Important advances accessibility-wise are usually at the OS level. For example, recent versions of macOS has great accessibility support (even for websites that has spent zero effort making their page accessible).

In a world of finite time, I would let this live outside core and let enthusiasts focus on it.

By closing some old issues we reduce the list of open issues to a more manageable set.