Skip to content

Accessibility fix for Select and Dropdown components #918

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

abhishek-yadav-eightfold

SUMMARY:

Updating aria-label attribute for the clear text button to make the element accessible.

GITHUB ISSUE (Open Source Contributors)

JIRA TASK (Eightfold Employees Only):

https://eightfoldai.atlassian.net/browse/ENG-120354

CHANGE TYPE:

  • Bugfix Pull Request
  • Feature Pull Request

TEST COVERAGE:

  • Tests for this change already exist
  • I have added unittests for this change

TEST PLAN:

Copy link

codesandbox-ci bot commented Dec 9, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Copy link

codecov bot commented Dec 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.61%. Comparing base (254ccfc) to head (885db29).
Report is 18 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #918      +/-   ##
==========================================
- Coverage   84.66%   84.61%   -0.05%     
==========================================
  Files        1099     1100       +1     
  Lines       20416    20489      +73     
  Branches     7718     7749      +31     
==========================================
+ Hits        17285    17337      +52     
- Misses       3044     3065      +21     
  Partials       87       87              

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

@@ -915,6 +916,7 @@ export const Select: FC<SelectProps> = React.forwardRef(
shape={selectShapeToTextInputShapeMap.get(mergedShape)}
size={selectSizeToTextInputSizeMap.get(mergedSize)}
value={selectedOptionText}
clearButtonAriaLabel={clearButtonAriaLabel}
Copy link
Collaborator

Choose a reason for hiding this comment

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

this should be inside clear props

Choose a reason for hiding this comment

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

I don't see any such prop on clear button? Am I missing something @sravichandran-eightfold

@abhishek-yadav-eightfold abhishek-yadav-eightfold changed the title Clear button aria label Accessibility fix for Select and Dropdown components Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants