-
Notifications
You must be signed in to change notification settings - Fork 56
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
feat(PieChart): improve a11y #1619
Conversation
@@ -301,12 +305,13 @@ export function PieChartIconComponent({ | |||
// to keep only the event listener from the TooltipTrigger. | |||
const omitI18N = omit(rest, ['i18n', 'tReady']); | |||
return ( | |||
<span className={classnames(theme['tc-pie-chart-icon'], 'tc-pie-icon-chart')} {...omitI18N}> | |||
<span className={classnames(theme['tc-pie-chart-icon'], 'tc-pie-icon-chart')}> | |||
<svg |
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 seems to be a breaking change, and the commit don't mentioned it
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.
Look at the PR description and the dedicated wiki page
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.
It needs a breaking change mention
@jdescottes-talend that's already done :
|
What is the problem this PR is trying to solve?
What is the chosen solution to this problem?
aria-busy
and loading aria-labelPlease check if the PR fulfills these requirements
[x] This PR introduces a breaking change
Extra props provided to the component are now spread on the svg element, not the span container.
Example:
Before
After