diff --git a/src/components/ComponentAnatomy.tsx b/src/components/ComponentAnatomy.tsx index cb14361ff6..47e6dc583f 100644 --- a/src/components/ComponentAnatomy.tsx +++ b/src/components/ComponentAnatomy.tsx @@ -9,7 +9,6 @@ import { AnatomyList, AnatomyListItem } from './AnatomyList'; interface IllustrationProps { className?: string; height?: boolean; - role?: string; } interface ComponentAnatomyProps { @@ -33,7 +32,7 @@ export const ComponentAnatomy = ({
{AnatomyIllustration && ( - + )} {AnatomyIllustration && AnatomyLegend && (
diff --git a/svgr.config.js b/svgr.config.js new file mode 100644 index 0000000000..db91ddd601 --- /dev/null +++ b/svgr.config.js @@ -0,0 +1,4 @@ +// .svgrrc.js +module.exports = { + svgProps: { role: 'img' }, +};