Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce suspenders:accessibility generator #1137

Merged
merged 1 commit into from
Nov 3, 2023

Commits on Nov 3, 2023

  1. Introduce suspenders:accessibility generator

    Ported over from #1105
    
    Installs [capybara_accessibility_audit] and
    [capybara_accessible_selectors].
    
    `./bin/rails g suspenders:accessibility`
    
    Introduces `Suspenders::Generators::APIAppUnsupported` module for
    generators that cannot be run in an [API only][] application.
    
    This uses a [concern][] to ensure we raise an error before the generator
    including the module invokes any of its methods.
    
    [capybara_accessibility_audit]: https://github.com/thoughtbot/capybara_accessibility_audit
    [capybara_accessible_selectors]: https://github.com/citizensadvice/capybara_accessible_selectors
    [API only]: https://guides.rubyonrails.org/api_app.html
    [concern]: https://api.rubyonrails.org/classes/ActiveSupport/Concern.html
    stevepolitodesign committed Nov 3, 2023
    Configuration menu
    Copy the full SHA
    23f54d8 View commit details
    Browse the repository at this point in the history