Skip to content

Conversation

@AkimFA
Copy link

@AkimFA AkimFA commented Feb 18, 2025

Files specifically used to test index checking in color contrast for updated branch

AkimFA added 30 commits January 24, 2025 08:49
Added a new function to find indexes of all elements found.
Added a new variable to pass in the checkContrast function (index)
Iterates through parent elements to get the background color rather than just using the background by default
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)
Leave in this branch for testing purposes only
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
Change return of alt text for testing purpose
added a script to run a node to load images
Currently cannot think of methods to apply background to specific elements that could scale with the html file
express and body parser were added
Force pushed hidden files used in testing
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.

1 participant