Skip to content

Commit

Permalink
Merge pull request #44869 from nextcloud/fix/systemtags-input-label
Browse files Browse the repository at this point in the history
fix(systemtags): Use built-in input label to satisfy a11y check of NcSelect
  • Loading branch information
susnux committed Apr 17, 2024
2 parents 4988f0d + 07525af commit a86c113
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
8 changes: 2 additions & 6 deletions apps/systemtags/src/components/SystemTags.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@
:name="t('systemtags', 'Loading collaborative tags …')"
:size="32" />
<template v-else>
<label for="system-tags-input">{{ t('systemtags', 'Search or create collaborative tags') }}</label>
<NcSelectTags class="system-tags__select"
input-id="system-tags-input"
:input-label="t('systemtags', 'Search or create collaborative tags')"
:placeholder="t('systemtags', 'Collaborative tags …')"
:options="sortedTags"
:value="selectedTags"
Expand Down Expand Up @@ -224,10 +223,7 @@ export default Vue.extend({
display: flex;
flex-direction: column;
label[for="system-tags-input"] {
margin-bottom: 2px;
}
// Fix issue with AppSidebar styles overwriting NcSelect styles
&__select {
width: 100%;
:deep {
Expand Down
4 changes: 2 additions & 2 deletions dist/files-sidebar.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/files-sidebar.js.map

Large diffs are not rendered by default.

0 comments on commit a86c113

Please sign in to comment.