Skip to content
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

A11y fixes and other minor issues #924

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tringakrasniqi
Copy link

This PR is another partial fix for #904, it contains:

  • Added role=presentation for the showcase images that were missing alt attribute
  • Fixed a color contrast issue
  • Added the missing key attr

@@ -32,7 +32,7 @@ const ParentComponent = styled.div`
color: royalblue;

${TargetedComponent} {
color: tomato;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For this one we were using html color names just for legibility, maybe you could find an alternate named color? https://en.wikipedia.org/wiki/Web_colors

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@probablyup, none of the orange colors do not pass the contrast ratio, how about using any of these colors (and adjusting the examples accordingly)?
image
Or, I can revert the color changes and merge only the other fixes?

Copy link

@faizaniqbalLC faizaniqbalLC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haved reviewed every change in 9 files.
File 1: key={title} added a key to section
File 2: role="presentation" add role to img
File 3: role="presentation" add role to img
File 4: removed color tomato
File 5: background: #E42200; changed background
File 6: background: #E42200; changed background
File 7: color: #E42200;
border-color: #E42200; added color to button tomato
File 8: Added keys : give a unique identity to every element
File 9: Added keys : give a unique identity to every element

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.

None yet

3 participants