docbrown/app/javascript/admin
Ridhwana 25dd42704e
Validate the color contrast ratio before submitting the Creator Settings Form (#15444)
* feat: add a color contrast utility

* feat: add an error when the color contrast is low

* feat: add form validations

* refactor: treat WCAGColorContrast as a library that can be intercanged at any time

* fix: styling

* test: add a test for the contrast

* feat: add test for WCAGColorContrast

* feat: update cypress tests for brand color and color contrast ratios

* feat: update the message to read better

* chore: update the styling

* refactor: address all feedback/suggestions

* Update cypress/integration/creatorOnboardingFlows/creatorSettings.spec.js

Co-authored-by: Nick Taylor <nick@iamdeveloper.com>

* Replaced other .trigger('change')s with .blur()

Co-authored-by: Nick Taylor <nick@iamdeveloper.com>
Co-authored-by: Nick Taylor <nick@dev.to>
2021-12-01 18:49:11 +02:00
..
__tests__/controllers Upgrade Stimulus to 3.0 (#14869) 2021-10-05 20:00:37 +02:00
controllers Validate the color contrast ratio before submitting the Creator Settings Form (#15444) 2021-12-01 18:49:11 +02:00
adminModal.js Admin Save Confirmation - Removing Badge Achievements (#14684) 2021-09-15 21:25:01 -04:00
messageUtilities.js Heavy Confirmation Flow for Broadcast-Destroy (#14819) 2021-09-29 07:43:00 -04:00