Fix: Make 'See all reviews' link fully visible for better localization#489
Fix: Make 'See all reviews' link fully visible for better localization#489badembafr wants to merge 1 commit intoWordPress:trunkfrom
Conversation
|
This PR changes the link display for all users, where as I believe the string is in it's current state because it was requested to be shorter for design purposes (while the I'm in support of changing this though, perhaps to a screen reader vs visual representation through something like: (Both internal strings would be translated without the ) |
|
Ok I will try to fix this problem. Thanks ! |
|
Thanks for the PR.
This certainly seems like the best approach. |
|
I looked into this issue again and found that, at least for the Japanese locale, I was able to translate it in a way that was both visually appropriate and accessibility-appropriate by adjusting the translation method. That is, I changed the text inside the span tag itself to match the language. Before: After: I'm not sure if this approach will work for all other languages, but if there are no issues in other languages, I think it's okay to close this. |

Fix localization of "See all reviews" link by removing hidden screen-reader text
Hello all,
This pull request addresses the issue described here:
#481
What I changed :
I replaced the original translation string:
with:
Why this change is necessary :
This improves localization and accessibility.
In French for example, the previous string would result in something like:
Which is incomplete and incorrect, because "reviews" was hidden using the
screen-reader-textclass.After this change, the sentence becomes:
Which is grammatically correct and understandable for all users.
Note:
I'm not sure whether you would also recommend adding
flex-wrap: wrapon the parent container to prevent layout issues on smaller screens. Let me know if you'd like me to add that as well.Thanks in advance !