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

[pickers] Change "aria-label" of DateTimePicker button #14675

Open
raunakdeep opened this issue Sep 19, 2024 · 1 comment
Open

[pickers] Change "aria-label" of DateTimePicker button #14675

raunakdeep opened this issue Sep 19, 2024 · 1 comment
Labels
accessibility a11y component: pickers This is the name of the generic UI component, not the React module! customization: extend Logic customizability status: waiting for author Issue with insufficient information

Comments

@raunakdeep
Copy link

raunakdeep commented Sep 19, 2024

Steps to reproduce

Link to live example: (required)

go to https://mui.com/x/react-date-pickers/date-time-picker/ and try to change aria-label of button "choose date" to other like "choose new calendar date"

Current behavior

aria-label change not supported

Expected behavior

aria-label change should support

Context

No response

Your environment

https://mui.com/x/react-date-pickers/date-time-picker/

Search keywords: datetimepicker

Search keywords:

@raunakdeep raunakdeep added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Sep 19, 2024
@mnajdova mnajdova transferred this issue from mui/material-ui Sep 19, 2024
@michelengelen
Copy link
Member

This works:

<DateTimePicker
  label="Basic date time picker"
  slotProps={{ openPickerButton: { 'aria-label': 'Choose new calendar date' } }}
/>

@michelengelen michelengelen changed the title Not able to change the aria label of date time picker button which is default choose date [pickers] Change "aria-label" of DateTimePicker button Sep 19, 2024
@michelengelen michelengelen added accessibility a11y status: waiting for author Issue with insufficient information component: pickers This is the name of the generic UI component, not the React module! customization: extend Logic customizability and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility a11y component: pickers This is the name of the generic UI component, not the React module! customization: extend Logic customizability status: waiting for author Issue with insufficient information
Projects
None yet
Development

No branches or pull requests

2 participants