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][Select] "&ZeroWidthSpace" is being rendered as child element #41515

Closed
tejasparkar opened this issue Mar 16, 2024 · 4 comments
Closed
Assignees
Labels
accessibility a11y bug 🐛 Something doesn't work component: select This is the name of the generic UI component, not the React module! package: material-ui Specific to @mui/material status: waiting for author Issue with insufficient information

Comments

@tejasparkar
Copy link

tejasparkar commented Mar 16, 2024

Steps to reproduce

Link to live example: (required)

Steps:
1.Open the url https://mui.com/material-ui/react-select/
2. Inspect the code in browser
3. Try navigation with screen reader and observe
Capture

Current behavior

<span className="notranslate">&#8203;</span>

<Button {...buttonProps}>
    {renderValue(selectedOptionsMetadata) ?? placeholder ?? (
      // fall back to a zero-width space to prevent layout shift
      // from https://github.com/mui/material-ui/pull/24563
      <span className="notranslate">&#8203;</span>
    )}
  </Button>

No response

Expected behavior

<Button {...buttonProps}>
    {renderValue(selectedOptionsMetadata) ?? placeholder ?? (
      // fall back to a zero-width space to prevent layout shift
      // from https://github.com/mui/material-ui/pull/24563
      <span aria-hidden="true" className="notranslate">&#8203;</span>
    )}
  </Button>

No response

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: accessibility

@tejasparkar tejasparkar added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Mar 16, 2024
@zannager zannager added the component: select This is the name of the generic UI component, not the React module! label Mar 18, 2024
@danilo-leal danilo-leal changed the title Zerowidthspace is rendered as child element in the "select" component [material-ui][Select] "&ZeroWidthSpace" is being rendered as child element Mar 18, 2024
@danilo-leal danilo-leal added the package: material-ui Specific to @mui/material label Mar 18, 2024
@mj12albert mj12albert added bug 🐛 Something doesn't work accessibility a11y and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Mar 22, 2024
@maryamabdi76
Copy link

@mj12albert I can work on this issue.

@tejasparkar
Copy link
Author

#41656

@ZeeshanTamboli
Copy link
Member

@tejasparkar What's the problem with the screen reader announcing? What is it announcing incorrectly?

@ZeeshanTamboli ZeeshanTamboli added the status: waiting for author Issue with insufficient information label Apr 28, 2024
Copy link

github-actions bot commented May 5, 2024

Since the issue is missing key information and has been inactive for 7 days, it has been automatically closed. If you wish to see the issue reopened, please provide the missing information.

@github-actions github-actions bot closed this as completed May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility a11y bug 🐛 Something doesn't work component: select This is the name of the generic UI component, not the React module! package: material-ui Specific to @mui/material status: waiting for author Issue with insufficient information
Projects
None yet
Development

No branches or pull requests

6 participants