-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
fix: accessibility for apperance #62489
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -166,13 +166,11 @@ async function pickFile() { | |
| class="background" | ||
| :name="t('theming', 'Background and color')" | ||
| :description="t('theming', 'The background can be set to an image from the default set, a custom uploaded image, or a plain color.')"> | ||
| <fieldset> | ||
| <legend class="hidden-visually"> | ||
| {{ t('theming', 'Background and color') }} | ||
| </legend> | ||
|
|
||
| <div :class="$style.backgroundSelect"> | ||
| <!-- Custom background --> | ||
| <ul | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://github.com/nextcloud-gmbh/customer-feature-requests/issues/1624 Related to this feedback, they want the background to be HTML list.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But thats invalid see my feedback on the issue. IMHO a false-positive text and should be closed as wont fix with proper reference to WCAG rules as the current semantics are correct (expect my other comment above). |
||
| :aria-label="t('theming', 'Background and color')" | ||
| :class="$style.backgroundSelect"> | ||
| <!-- Custom background --> | ||
| <li :class="$style.backgroundSelect__item" role="listitem"> | ||
| <button | ||
| :aria-disabled="loading === 'custom'" | ||
| :aria-pressed="currentBackgroundImage === 'custom'" | ||
|
|
@@ -184,8 +182,10 @@ async function pickFile() { | |
| <NcLoadingIcon v-if="loading === 'custom'" /> | ||
| <NcIconSvgWrapper v-else :path="currentBackgroundImage === 'custom' ? mdiCheck : mdiImageEditOutline" /> | ||
| </button> | ||
| </li> | ||
|
|
||
| <!-- Custom color picker --> | ||
| <!-- Custom color picker --> | ||
| <li :class="$style.backgroundSelect__item" role="listitem"> | ||
| <NcColorPicker v-model="currentTheming.backgroundColor" @submit="pickColor"> | ||
| <button | ||
| class="button-vue" | ||
|
|
@@ -202,8 +202,10 @@ async function pickFile() { | |
| <NcIconSvgWrapper v-else :path="currentBackgroundImage === 'color' ? mdiCheck : mdiPaletteOutline" /> | ||
| </button> | ||
| </NcColorPicker> | ||
| </li> | ||
|
|
||
| <!-- Default background --> | ||
| <!-- Default background --> | ||
| <li :class="$style.backgroundSelect__item" role="listitem"> | ||
| <button | ||
| class="button-vue" | ||
| :class="[$style.backgroundSelect__entry, $style.backgroundSelect__entryDefault]" | ||
|
|
@@ -218,24 +220,28 @@ async function pickFile() { | |
| <NcLoadingIcon v-if="loading === 'default'" /> | ||
| <NcIconSvgWrapper v-else :path="currentBackgroundImage === 'default' ? mdiCheck : mdiUndo" /> | ||
| </button> | ||
| </div> | ||
| </li> | ||
|
|
||
| <!-- Force shipped backgrounds onto the next line while keeping flex wrap layout --> | ||
| <li | ||
| :class="$style.backgroundSelect__break" | ||
| aria-hidden="true" | ||
| role="presentation" /> | ||
|
|
||
| <!-- Background set selection --> | ||
| <fieldset :class="$style.backgroundSelect"> | ||
| <label class="hidden-visually"> | ||
| {{ t('theming', 'Default shipped background images') }} | ||
| </label> | ||
| <!-- Shipped background set --> | ||
| <li | ||
| v-for="shippedBackground in shippedBackgrounds" | ||
| :key="shippedBackground.name" | ||
| :class="$style.backgroundSelect__item" | ||
| role="listitem"> | ||
| <button | ||
| v-for="shippedBackground in shippedBackgrounds" | ||
| :key="shippedBackground.name" | ||
| :title="shippedBackground.details.attribution" | ||
| :aria-pressed="currentBackgroundImage === shippedBackground.name" | ||
| class="button-vue" | ||
| :class="$style.backgroundSelect__entry" | ||
| :style="{ | ||
| backgroundImage: 'url(' + shippedBackground.preview + ')', | ||
| }" | ||
| tabindex="0" | ||
| @click="setShipped(shippedBackground.name)"> | ||
| <NcIconSvgWrapper | ||
| v-if="currentBackgroundImage === shippedBackground.name" | ||
|
|
@@ -245,8 +251,8 @@ async function pickFile() { | |
| {{ shippedBackground.details.description }} | ||
| </span> | ||
| </button> | ||
| </fieldset> | ||
| </fieldset> | ||
| </li> | ||
| </ul> | ||
| </NcSettingsSection> | ||
| </template> | ||
|
|
||
|
|
@@ -255,6 +261,24 @@ async function pickFile() { | |
| display: flex; | ||
| flex-wrap: wrap; | ||
| justify-content: center; | ||
| margin: 0; | ||
| padding: 0; | ||
| list-style: none; | ||
|
|
||
| .backgroundSelect__item { | ||
| display: flex; | ||
| list-style: none; | ||
| } | ||
|
|
||
| .backgroundSelect__break { | ||
| flex-basis: 100%; | ||
| width: 100%; | ||
| height: 0; | ||
| margin: 0; | ||
| padding: 0; | ||
| overflow: hidden; | ||
| list-style: none; | ||
| } | ||
|
|
||
| .backgroundSelect__entry { | ||
| display: flex; | ||
|
|
||
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
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.
This is not valid you cannot have a checkbox inside a button.
This should be just a DIV element and checkbox within already is the semantic input element.
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.
So the outer elements needs to be a
divand the outer fieldset needs arole="radiogroup".