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

fixing color and toggle accessibility #54661

Merged
merged 4 commits into from
Jan 14, 2020
Merged

Conversation

timductive
Copy link
Member

@timductive timductive commented Jan 13, 2020

Summary

Fixing accessibility labels for color button, grid, palettes and toggles.

closes #25509
closes #25510

Checklist

For maintainers

@timductive timductive added release_note:fix Project:Accessibility Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas v7.7.0 labels Jan 13, 2020
@timductive timductive self-assigned this Jan 13, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-canvas (Team:Canvas)

@timductive timductive marked this pull request as ready for review January 14, 2020 02:37
@timductive timductive requested a review from a team as a code owner January 14, 2020 02:37
Copy link
Contributor

@myasonik myasonik left a 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.

@timductive
Copy link
Member Author

@elasticmachine merge upstream

Copy link
Contributor

@crob611 crob611 left a 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}
Copy link
Contributor

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.

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@timductive timductive merged commit b298dd4 into elastic:master Jan 14, 2020
timductive added a commit to timductive/kibana that referenced this pull request Jan 14, 2020
* fixing color and toggle accessibility

* updating snapshots

* fixing more snapshots

* fixing toggle console warning
@timductive timductive deleted the a11y-fixes branch January 14, 2020 16:56
timductive added a commit that referenced this pull request Jan 14, 2020
* fixing color and toggle accessibility

* updating snapshots

* fixing more snapshots

* fixing toggle console warning
jkelastic pushed a commit to jkelastic/kibana that referenced this pull request Jan 17, 2020
* fixing color and toggle accessibility

* updating snapshots

* fixing more snapshots

* fixing toggle console warning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Project:Accessibility release_note:fix review Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas v7.6.0
Projects
None yet
5 participants