Skip to content

Conversation

@AkimFA
Copy link

@AkimFA AkimFA commented Jan 24, 2025

Added a new function to find indexes of all elements found.
Added a new variable to pass in the checkContrast function (index)

Maracoo and others added 30 commits August 19, 2024 10:54
Update text replacement
Update text replacement
AkimFA added 21 commits January 27, 2025 08:13
made it include to check for the ">" also
To pass certain issues such as having the text be element types (i.e. div, p, etc)
Refactored the getIndexes function to make use of regex to read line breaks allowing

Added a isThereNoText function to skip checking contrast issues if there is no text
made the callers that call this go straight to getContrastRatio
Made some functions in color-contrast.js async to make use of an api that gets the complement of a color

Editted the suggestion to say what color is needed instead of the generic warning
Change how suggestion is passed from color-contrast.js to contrast.js
value being passed to the function was already converted to hex so no need to check other types
Added simple UI to show color scheme suggestion in the side bar
Also gets the appropriate text color

It might suggest even if there is no issues so will fix
Added a parseFloat to change the string from the return
Made the color scheme UI wider
Added some checks to see if there are any issues and if none, dont do color scheme
Removed the name and replaced it with hex value instead
Moved the data formatting to inside the getColorScheme function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants