Skip to content

[a11y] ExpandableSearch has unnecessary aria-label="button" #19532

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

Merged

Conversation

maradwan26
Copy link
Contributor

Closes #19516

This documentation states: "Don't use both on the same element because aria-labelledby will take precedence over aria-label if both are applied." Therefore, I have removed the aria-label and kept aria-labelledby since aria-label is redundant.

Changelog

New

  • Nothing new

Changed

  • Nothing changed

Removed

  • Removed aria-label="button"

Testing / Reviewing

  • Visit deploy preview
  • Inspect ExpandableSearch
  • Notice that there is no aria-label, we just have aria-labelledby since we should not have both
  • Ensure there are no breaking changes for other Search variations

Copy link

netlify bot commented May 30, 2025

Deploy Preview for v11-carbon-web-components ready!

Name Link
🔨 Latest commit 67564f6
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-web-components/deploys/6839ef9814b9ff0008d1ec0a
😎 Deploy Preview https://deploy-preview-19532--v11-carbon-web-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

netlify bot commented May 30, 2025

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 67564f6
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-react/deploys/6839ef986e4bbf00087a5101
😎 Deploy Preview https://deploy-preview-19532--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

netlify bot commented May 30, 2025

Deploy Preview for v11-carbon-web-components ready!

Name Link
🔨 Latest commit d7886e5
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-web-components/deploys/6839f0780df17f0008110c54
😎 Deploy Preview https://deploy-preview-19532--v11-carbon-web-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

netlify bot commented May 30, 2025

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit d7886e5
🔍 Latest deploy log https://app.netlify.com/projects/v11-carbon-react/deploys/6839f078a3e57900084bd03d
😎 Deploy Preview https://deploy-preview-19532--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

codecov bot commented May 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.48%. Comparing base (c1c00dc) to head (d7886e5).
Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #19532      +/-   ##
==========================================
- Coverage   84.48%   84.48%   -0.01%     
==========================================
  Files         373      373              
  Lines       14645    14644       -1     
  Branches     4840     4789      -51     
==========================================
- Hits        12373    12372       -1     
  Misses       2125     2125              
  Partials      147      147              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@riddhybansal riddhybansal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 💯

@maradwan26 maradwan26 added this pull request to the merge queue Jun 2, 2025
Merged via the queue into carbon-design-system:main with commit 746cb92 Jun 2, 2025
37 checks passed
@maradwan26 maradwan26 deleted the search-aria-label-fix branch June 2, 2025 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[a11y]: ExpandableSearch element: unnecessary inclusion of aria-label="button" attribute
4 participants