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

fix(select): updating react-select and adding aria-controls to input … #1307

Merged
merged 1 commit into from
Sep 1, 2023

Conversation

JoeSpanbauer
Copy link
Collaborator

…to fix 508 compliance issues EB-234

Before submitting a pull request, please make sure the following is done:

  1. Fork the repository and create your branch from master.
  2. Run yarn in the repository root.
  3. If you've fixed a bug or added code that should be tested, add tests!
  4. Ensure the test suite passes (yarn test). Tip: yarn test --watch TestName is helpful in development.
  5. Make sure your code passed the conventional commits check. Read more about conventional commits

@codecov
Copy link

codecov bot commented Sep 1, 2023

Codecov Report

Merging #1307 (c32e9a4) into master (2710fd0) will decrease coverage by 2.95%.
Report is 1 commits behind head on master.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1307      +/-   ##
==========================================
- Coverage   94.15%   91.21%   -2.95%     
==========================================
  Files          19       20       +1     
  Lines         599      717     +118     
  Branches      197      236      +39     
==========================================
+ Hits          564      654      +90     
- Misses         35       63      +28     
Files Changed Coverage Δ
packages/select/src/Select.js 95.45% <100.00%> (ø)

... and 34 files with indirect coverage changes

@@ -25,7 +25,7 @@ const components = {
ClearIndicator: () => null,
Input: (props) => {
const { 'aria-required': required } = props.selectProps;
return <Input {...props} aria-required={required} />;
return <Input aria-controls="" {...props} aria-required={required} />;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we need to be able to pass a value for aria-controls, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The component we're using doesn't support this. aria-controls needs to be the id of the ul, and this package uses divs. Also, the menu isn't rendered until it's expanded, which doesn't resolve the 508 compliance issue.

@JoeSpanbauer JoeSpanbauer merged commit a8c4497 into master Sep 1, 2023
8 of 9 checks passed
@JoeSpanbauer JoeSpanbauer deleted the fix/EB-234-moar-control branch September 1, 2023 17:11
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.

3 participants