Closed none23 closed 2 months ago
The use of description and title as part of the supported values in the Step type is because the most common use case there will be in steppers is to have a title and a description. Reference --> https://mui.com/material-ui/react-stepper/#linear
Regarding your question: maybe it is better not to add any aria-label/description if there is no title/description, as the id can be a bit confusing depending on what the developer assigns as id
We discussed this with @jonathantneal, another great contributor to the library and decided that these aria attr are outside the scope of the library and should be implemented by the developer.
So I will close this issue when we have the PR that removes these attrs 🤝
Closed in favour of v2. We will soon add documents to generate the data-attr, but everything will be left more in the hands of the developer.
step.description
is probably meant to be"aria-description"
Also
step.id
as "aria-label" looks like a bad idea: