-
-
Notifications
You must be signed in to change notification settings - Fork 436
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
Increase Accessibility #904 #910
base: main
Are you sure you want to change the base?
Conversation
components/Nav/Navbar.js
Outdated
@@ -150,9 +150,10 @@ class ModalContainer extends PureComponent { | |||
} | |||
} | |||
|
|||
const LogoLink = styled(Link).attrs((/* props */) => ({ | |||
const LogoLink = styled(Link).attrs(({ ariaLabel }) => ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can just pass aria-label
directly on LogoLink
instead of using the attrs
indirection:
<LogoLink aria-label="Styled Components Home Page">
components/Nav/Social.js
Outdated
unstyled: true, | ||
'aria-label': props.ariaLabel, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
This is looking pretty good to me, the only comment I have is we might want to just use |
Hi @probablyup, thanks for the feedback. I'll work on this in the next few days...
Let me know what you think... |
what needs to be done:
1 and 3 have been completed. For 2 there is no elegant way to add labels on form elements, since the form element (textarea) is a child element of the "LiveEditor" component imported from "react-live-runner".