Skip to content

Apply AriaAttributes to Marimekko chart - #2847

Open
mmaxence wants to merge 1 commit into
plouc:masterfrom
mmaxence:feat/marimekko-aria
Open

mmaxence wants to merge 1 commit into
plouc:masterfrom
mmaxence:feat/marimekko-aria

Conversation

@mmaxence

Copy link
Copy Markdown

Follow-up to #2823 (Pie) and #2841 (Sunburst), part of #2754.

Marimekko renders through SvgWrapper like the other SVG charts, and SvgWrapper already forwards aria-label / aria-labelledby / aria-describedby to the root <svg>. Marimekko just wasn't passing them through, so there was no way to give the chart an accessible name.

This wires the same three optional props from Marimekko to SvgWrapper, matching Pie and Sunburst.

  • packages/marimekko/src/types.ts: add the three optional props to MarimekkoCommonProps
  • packages/marimekko/src/Marimekko.tsx: forward them to SvgWrapper
  • packages/marimekko/tests/Marimekko.test.tsx: assert they reach the root <svg>, same shape as the Pie/Sunburst accessibility tests

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant