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

[material-ui][StepIcon] titleAccess not included in props type #44328

Closed
arishoham opened this issue Nov 5, 2024 · 2 comments · Fixed by #44337
Closed

[material-ui][StepIcon] titleAccess not included in props type #44328

arishoham opened this issue Nov 5, 2024 · 2 comments · Fixed by #44337
Assignees
Labels
bug 🐛 Something doesn't work component: stepper This is the name of the generic UI component, not the React module! package: material-ui Specific to @mui/material

Comments

@arishoham
Copy link
Contributor

arishoham commented Nov 5, 2024

Steps to reproduce

In the examples below, there is a typescript error because titleAccess is not in StepIconProps. It is also not listed in the api docs https://mui.com/material-ui/api/step-icon/. However, the prop does work and adds a <title /> to the svg.

<StepIcon titleAccess="test title" />
<StepLabel StepIconProps={{ titleAccess: 'test title' }}>
  label
</StepLabel>

Current behavior

<StepLabel StepIconProps={{ titleAccess: 'test title' }}>
  label
</StepLabel>

causes this typescript error:

Type '{ icon: null; titleAccess: string; }' is not assignable to type 'IntrinsicAttributes & StepIconProps'.
  Property 'titleAccess' does not exist on type 'IntrinsicAttributes & StepIconProps'.

Expected behavior

<StepLabel StepIconProps={{ titleAccess: 'test title' }}>
  label
</StepLabel>

Should not cause any typescript errors.

Context

No response

Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: StepIcon, Stepper, StepLabel

@arishoham arishoham added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Nov 5, 2024
@DiegoAndai DiegoAndai self-assigned this Nov 6, 2024
@zannager zannager added the component: stepper This is the name of the generic UI component, not the React module! label Nov 7, 2024
@DiegoAndai
Copy link
Member

Thanks for the report @arishoham, accepting as a bug

@DiegoAndai DiegoAndai changed the title StepIcon can receive titleAccess prop, but it's not documented anywhere or in the types. [material-ui][StepIcon] titleAccess not included in props type Nov 8, 2024
@DiegoAndai DiegoAndai added package: material-ui Specific to @mui/material bug 🐛 Something doesn't work and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Nov 8, 2024
Copy link

This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.

Note

@arishoham How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: stepper This is the name of the generic UI component, not the React module! package: material-ui Specific to @mui/material
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants