forked from feilkinez/ably_vs
-
Notifications
You must be signed in to change notification settings - Fork 1
Updated - Color warning placement fix #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
AkimFA
wants to merge
98
commits into
dlsucomet:main
Choose a base branch
from
AkimFA:updated
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…on for alt text generator
Update text replacement
Update text replacement
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
Filtered out duplicates
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
Currently cannot think of methods to apply background to specific elements that could scale with the html file
Finds all external sheet rather than 1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added a new function to find indexes of all elements found.
Added a new variable to pass in the checkContrast function (index)