-
Notifications
You must be signed in to change notification settings - Fork 68
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
663 checkbox behavior #989
663 checkbox behavior #989
Conversation
…rroseweeks-663-checkbox-behavior
…o amberroseweeks-663-checkbox-behavior
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
src/components/Filters/Panels.tsx
Outdated
@@ -84,6 +86,9 @@ const Panels: FC<PanelsProps> = ({ | |||
return ( | |||
<Card | |||
key={index} | |||
role="checkbox" | |||
aria-describedby={aria_describedby_label} | |||
aria-checked={isSelected ? 'true' : 'false'} |
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.
Could rewrite this as aria-checked={!!isSelected}
or even aria-checked={isSelected}
if isSelected
is already a boolean
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.
Code cleanup comment but otherwise it works as advertised 👍
Btw switched merge branch to staging |
This resolves issue #663