-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat: read language from metadata (resolves #129) #216
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue #208 affects the Deselect All label, but does not need to be fixed in this PR.
@endif | ||
@foreach($terms as $term => $name) | ||
<li class="tag"> | ||
<button class="button button--tag-button" data-checkbox="{{ $taxonomy }}-{{ $term }}"><span class="screen-reader-text">{{ __('Remove', 'coop-library') }} </span>{!! $name !!}<span class="screen-reader-text"> {{ __('from current filters', 'coop-library') }}</span> @svg('close', 'icon--close', ['focusable' => 'false', 'aria-hidden' => 'true'])</button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue #208 affects this label as well.
NVDA will read the label as "Remove alllanguages" (with the effect of slurring the two words together). Inspecting the accessibility shows that the label is properly structured.
Description
This PR adds support for resource languages stored in metadata (see platform-coop-toolkit/coop-library-framework#316) and the ability to filter resources by language. It also preserves accordion status on filter application, resolving #129.
Steps to test
Expected behavior: Resources in all languages are shown, and they can be filtered by language.
Additional information
Not applicable.
Related issues