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

Accessibility issue #418

Closed
oliviertassinari opened this issue Aug 20, 2018 · 11 comments
Closed

Accessibility issue #418

oliviertassinari opened this issue Aug 20, 2018 · 11 comments

Comments

@oliviertassinari
Copy link
Contributor

Do you want to request a feature or report a bug?

bug

What is the current behavior?

The following lighthouse test is failing:

capture d ecran 2018-08-21 a 00 26 43

You can reproduce it on Bootstrap or Material-UI with Chrome 68.

What is the expected behavior?

💯 % score

@s-pace
Copy link

s-pace commented Aug 21, 2018

Thank you for sharing. Do you need a fix asap or can it wait for the v3?

@oliviertassinari
Copy link
Contributor Author

@s-pace as you see fit.

@Lausselloic
Copy link

Hello,

Looks like aria-label is not saved on destroy. On bootstrap there's an "aria-label" attribute on the search input, but when checking on docserach.js v2.6.2

// store the original values of the attrs that get modified
  // so modifications can be reverted on destroy
  $input.data(attrsKey, {
    'aria-autocomplete': $input.attr('aria-autocomplete'),
    'aria-expanded': $input.attr('aria-expanded'),
    'aria-owns': $input.attr('aria-owns'),
    autocomplete: $input.attr('autocomplete'),
    dir: $input.attr('dir'),
    role: $input.attr('role'),
    spellcheck: $input.attr('spellcheck'),
    style: $input.attr('style'),
    type: $input.attr('type')
  });

quick-fix will be to add aria-label to the saved attributes?

@endiliey
Copy link
Contributor

endiliey commented May 10, 2019

It will be great to have this so that we can improve accessibility 😉 .

Edit: I sent a PR

@oliviertassinari
Copy link
Contributor Author

I have patched the problem with: https://github.com/mui-org/material-ui/blob/e4ef5bf1adc6df6888a947919124302ed29d3343/docs/src/modules/components/AppSearch.js#L50-L67.

@endiliey
Copy link
Contributor

Thanks @oliviertassinari. I've sent a PR for it but I guess I'll use your solution for now.

cc @s-pace

@endiliey
Copy link
Contributor

We can close this out. I've resolved it after upgrading to 2.6.3

@s-pace s-pace closed this as completed May 13, 2019
@s-pace
Copy link

s-pace commented May 13, 2019

Thanks again @endiliey, version released 🚀

@oliviertassinari
Copy link
Contributor Author

Do we have to wait a week to see the CDN cache expire?

@s-pace
Copy link

s-pace commented May 14, 2019

image
Should be updated :)

@Lausselloic
Copy link

thanks for the fix. Works well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants