-
Notifications
You must be signed in to change notification settings - Fork 11k
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
[8.x] Remove redundant description & localize template #39928
Conversation
Screen readers will announce the type of role the landmark is, in this case screen readers would say "Pagination Navigation Navigation" -- this commit fixes that. See also "Redundant descriptions" @ mdn: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/form_role
Screen readers will announce the type of role the landmark is, in this case screen readers would say "Pagination Navigation Navigation" -- this commit fixes that. See also "Redundant descriptions" @ mdn: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/form_role
Thanks for contributing to Laravel! ❤️ |
@taylorotwell @xanderificnl This actually introduces a bug that breaks Tailwind pagination out of the box, and it should ideally be reverted. When attempting to use Tailwind pagination, I'm seeing the following: The line causing the issue:
This is due to Laravel shipping with a |
I'm using this exact template in my app, and not running into this issue. The line you quoted is from the You can easily test via tinker (
You really shouldn't be getting an array conversion when localizing strings. EDIT: While I'm not running into problems -- it does go against best practices lined out in the docs, therefore I've submitted a PR to resolve this matter. Thanks for bringing this to my attention @aaronhuisinga ! |
As said, I'm not running into this issue, but I did check the docs and they do agree that I'll be submitting a PR shortly to resolve this matter by adding a new translation key for pagination. |
@xanderificnl I did indeed paste the change from the wrong file. I was experiencing the issue in I'm really not sure why it was triggering the error for us and not for your installation. We were just running a pretty standard Laravel app using Sail for testing, and ran into the issue after updating the framework. Thanks for taking the time to check this out and submitting an updated PR! |
Hi. I was just looking through my source and I have a file called resources/lang/en.json. Considering the documentation, that may be the reason why I haven't hit this issue. Currently in the train w/o access to a machine besides my phone so I can't actually verify it by trying it out. Thanks again for bringing this to my attention! Cheers,
|
This reverts commit 608c430.
Screen readers will announce the type of role the landmark is, in this case screen readers would say "Pagination Navigation Navigation" -- this PR fixes that. This should be of benefit to accessibility.
See also "Redundant descriptions" @ mdn: developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/form_role
Off-topic: I'd like to thank the maintainers of Laravel. You guys rock!