dequelabs / dequelabs/axe-core

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

Open
#4,488 1 comment 0 reactions 0 assignees View on GitHub
feat linting
Dominant language
JavaScript
Stars
7.5k
Forks
933
Avg merge
2d 23h
Merged PRs (30d)
17

Description

### 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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.