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

With linting, how to handle custom React object that could be transcribed into various HTML elements #4488

Open
jasonhocker opened this issue Jun 4, 2024 · 1 comment
Labels
feat New feature or enhancement linting Axe-linter issues

Comments

@jasonhocker
Copy link

Product

axe Linter

Question

For an object that may produce different HTML based on attributes, how would you define that as a global-components in axe-linter.yaml? I am thinking that Typography from @mui https://mui.com/material-ui/react-typography/ is like that. If I have but it may produce different h1 h2... based on the variant attribute in our component library, how would I map that? Is the @mui version simply a global-components mapping or is it special?

@jasonhocker jasonhocker added question ungroomed Ticket needs a maintainer to prioritize and label labels Jun 4, 2024
@github-actions github-actions bot added the linting Axe-linter issues label Jun 4, 2024
@straker
Copy link
Contributor

straker commented Jun 4, 2024

Thanks for the question. At the moment this in't supported. It's a feature we're aware of but haven't figured out how we're going to handle it yet.

@straker straker added feat New feature or enhancement and removed question ungroomed Ticket needs a maintainer to prioritize and label labels Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or enhancement linting Axe-linter issues
2 participants