docbrown/app/javascript/admin/controllers
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
..
users/tools Upgrade Stimulus to 3.0 (#14869) 2021-10-05 20:00:37 +02:00
ahoy_controller.js Upgrade Stimulus to 3.0 (#14869) 2021-10-05 20:00:37 +02:00
alert_controller.js Upgrade Stimulus to 3.0 (#14869) 2021-10-05 20:00:37 +02:00
article_controller.js Fix: cannot unpin articles using checkbox (#15090) 2021-11-02 13:50:56 -04:00
article_pinned_modal_controller.js Fix: cannot unpin articles using checkbox (#15090) 2021-11-02 13:50:56 -04:00
config_controller.js Fixed issue where element didn't exist in the config Stimulus controller. (#15408) 2021-11-17 15:25:17 -05:00
confirmation_modal_controller.js Heavy Confirmation Flow for DisplayAd-Destroy (#14862) 2021-10-04 08:36:43 -04:00
consumer_app_controller.js Upgrade Stimulus to 3.0 (#14869) 2021-10-05 20:00:37 +02:00
creator_settings_controller.js Validate the color contrast ratio before submitting the Creator Settings Form (#15444) 2021-12-01 18:49:11 +02:00
data_update_script_controller.js Upgrade Stimulus to 3.0 (#14869) 2021-10-05 20:00:37 +02:00
image_upload_controller.js Upgrade Stimulus to 3.0 (#14869) 2021-10-05 20:00:37 +02:00
landing_page_modal_controller.js [15 min fix] Refactor private landing pages model code (#13982) 2021-06-15 18:17:15 +02:00
modal_controller.js Upgrade Stimulus to 3.0 (#14869) 2021-10-05 20:00:37 +02:00
reaction_controller.js Upgrade Stimulus to 3.0 (#14869) 2021-10-05 20:00:37 +02:00
sidebar_controller.js Upgrade Stimulus to 3.0 (#14869) 2021-10-05 20:00:37 +02:00
snackbar_controller.js Upgrade Stimulus to 3.0 (#14869) 2021-10-05 20:00:37 +02:00
svg_icon_upload_controller.js Upgrade Stimulus to 3.0 (#14869) 2021-10-05 20:00:37 +02:00
user_controller.js Upgrade Stimulus to 3.0 (#14869) 2021-10-05 20:00:37 +02:00