docbrown/app/javascript/utilities
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__ Validate the color contrast ratio before submitting the Creator Settings Form (#15444) 2021-12-01 18:49:11 +02:00
color Validate the color contrast ratio before submitting the Creator Settings Form (#15444) 2021-12-01 18:49:11 +02:00
Constants [deploy] 🚀 Feature: Draw Command for connect with image annotations (#10136) 2020-10-07 16:06:22 +02:00
http Moved src/utils out of src/ folder to utilities/ folder. (#7875) 2020-05-15 10:07:42 -04:00
markdown make default alt text 'image description' (#15063) 2021-10-13 16:37:34 +01:00
search Prep work to sync mobile search in #10424 (#11525) 2020-11-30 06:13:06 -05:00
calculateTextAreaHeight.js Add mention autocomplete to posts (#13101) 2021-03-31 14:42:59 +01:00
codeFullscreenModeSwitcher.js #12643 Add eslint rule for formatting redundant curly braces in jsx (#14592) 2021-08-26 11:15:06 -04:00
debounceAction.js Updates ESLint rules to error on default imports (#12512) 2021-02-02 10:24:03 -05:00
dragAndDrop.js Drag and drop an image in the editor (#10145) 2020-09-04 14:12:59 -04:00
dragAndUpload.js Add markdown toolbar to V2 editor (#15347) 2021-11-29 07:50:17 +00:00
dropdownUtils.js Make sure open preview cards don't collapse on scroll (#14482) 2021-08-12 13:29:51 +01:00
getUserDataAndCsrfToken.js ✂✂✂ Remove Connect (#14734) 2021-11-18 08:21:00 -06:00
gist.js Remove extra script tag from embedded gists to prevent them from mixing up (#14674) 2021-11-29 15:48:20 -05:00
locale.js Admin-configurable display locale (#14620) 2021-09-28 11:04:35 -04:00
moderation.js [15 min fix] Fixed an issue with the moderation button not appearing on some posts (#14184) 2021-07-13 10:31:00 +02:00
pasteImage.js Add paste image (#10212) 2021-02-04 10:58:56 -05:00
sendFollowUser.js Updates ESLint rules to error on default imports (#12512) 2021-02-02 10:24:03 -05:00
textAreaUtils.js Markdown toolbar - update new line logic for block syntaxes (#15343) 2021-11-19 06:59:21 +00:00
viewport.js Fix feed navigation shortcuts when first article is not 100% visible (#11874) 2021-04-13 22:35:50 -04:00
waitOnBaseData.js ForemMobile namespaced functions (#15212) 2021-11-23 15:25:29 -06:00