docbrown/app
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
..
assets Increase scrollable area on toolbar (#15615) 2021-12-01 13:59:03 +01:00
black_box Make Rubocop happy again (#14729) 2021-09-14 09:15:01 -05:00
components/admin/users Small change to make the tools section of member details mobile friendly. (#15159) 2021-10-22 18:47:20 +02:00
controllers Fixing weighted query hotness grab logic (#15528) 2021-11-30 12:55:48 -05:00
decorators Refactoring Spam Handler (#15412) 2021-11-30 12:45:12 -05:00
errors Guarding against spam from OAuth Sources (#15404) 2021-11-18 16:26:39 -05:00
helpers Enable Forem (Passport) Auth (#15141) 2021-11-23 14:59:00 -06:00
javascript Validate the color contrast ratio before submitting the Creator Settings Form (#15444) 2021-12-01 18:49:11 +02:00
lib ✂✂✂ Remove Connect (#14734) 2021-11-18 08:21:00 -06:00
liquid_tags complete changes (#15420) 2021-11-18 14:19:45 -05:00
mailers ✂✂✂ Remove Connect (#14734) 2021-11-18 08:21:00 -06:00
models Fixing broken logic (#15549) 2021-11-30 13:15:46 -05:00
policies ✂✂✂ Remove Connect (#14734) 2021-11-18 08:21:00 -06:00
queries Adds validations to avoid creating unnecessary PNs (#14621) 2021-08-31 15:00:30 -06:00
refinements Drop profile columns from user (#10707) 2020-12-03 08:14:38 +07:00
sanitizers Remove redundant freeze calls (#14596) 2021-08-26 10:01:08 -04:00
serializers ✂✂✂ Remove Connect (#14734) 2021-11-18 08:21:00 -06:00
services Avoid email reassignment when connecting OAuth provider (#15609) 2021-12-01 09:13:12 -05:00
uploaders ✂✂✂ Remove events (#15062) 2021-10-15 09:31:08 -04:00
validators Updating valid domain registration (#15436) 2021-11-19 10:05:00 -05:00
view_objects Upgrade to Ruby 3.0.2 (#12103) 2021-08-25 14:26:33 -04:00
views Validate the color contrast ratio before submitting the Creator Settings Form (#15444) 2021-12-01 18:49:11 +02:00
workers Guarding against missing experiments (#15440) 2021-11-22 16:06:32 -05:00