-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
fixing color and toggle accessibility #54661
Conversation
Pinging @elastic/kibana-canvas (Team:Canvas) |
ed5b1ef
to
ed662a9
Compare
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.
Don't have time at the moment to pull down and confirm locally but the code looks good.
If possible, let's get this into 7.6 because no matter what this will likely be an improvement to what's currently there and I'll review it later in the week to see if we need to do another pass over anything.
@elasticmachine merge upstream |
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.
Looks good, just clean up that one warning that's showing up.
@@ -26,6 +26,8 @@ const ToggleArgInput = ({ onValueChange, argValue, argId, renderError }) => { | |||
checked={argValue} | |||
onChange={handleChange} | |||
className="canvasArg__switch" | |||
aria-label={typeInstance.displayName} | |||
showLabel={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.
This showLabel=false
is causing some warning in the console
EuiSwitch 'label' must be a string when 'showLabel' is false.
f95753b
to
050beb9
Compare
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
* fixing color and toggle accessibility * updating snapshots * fixing more snapshots * fixing toggle console warning
* fixing color and toggle accessibility * updating snapshots * fixing more snapshots * fixing toggle console warning
Summary
Fixing accessibility labels for color button, grid, palettes and toggles.
closes #25509
closes #25510
Checklist
For maintainers