samvera / hyrax

Hyrax is a Ruby on Rails Engine built by the Samvera community. Hyrax provides a foundation for creating many different digital repository applications.
http://hyrax.samvera.org/
Apache License 2.0
182 stars 122 forks source link

Save button on file manager page has insufficient color contrast #6814

Open rjkati opened 1 month ago

rjkati commented 1 month ago

Descriptive summary

On dev.nurax.samvera.org (Hyrax 5.0.1), the Save button on the File Manager page does not meet minimum WCAG AA color contrast requirements

Steps to reproduce the behavior in User Interface (UI)

  1. In Chrome, download the Site Improve browser extension
  2. As an admin, go to https://dev.nurax.samvera.org/concern/images/ww72bb76t/file_manager?locale=en and run the Site Improve browser extension file_manager_color_contrast
rkuehn-uofl commented 1 month ago

Recommend adding aria-disabled="true" to save button code - located in ~/app/views/hyrax/base/_file_manager_actions.html.erb on line 3. Example: <button name="button" type="submit" class="btn btn-primary disabled mr-2" data-action="save-actions" aria-disabled="true">Save</button>