generated from Seekra/repository-template
feat(settings): add selection option ARIA label
This commit is contained in:
@@ -70,7 +70,11 @@ const labelId = useId();
|
|||||||
</div>
|
</div>
|
||||||
<ul class="options-list" :aria-labelledby="labelId">
|
<ul class="options-list" :aria-labelledby="labelId">
|
||||||
<li v-for="option in props.setting.options" :key="option.name">
|
<li v-for="option in props.setting.options" :key="option.name">
|
||||||
<label class="settings-button" :title="t(option.i18n)">
|
<label
|
||||||
|
class="settings-button"
|
||||||
|
:title="t(option.i18n)"
|
||||||
|
:aria-label="t('settings.selection.option.ariaLabel', { option: t(option.i18n) })"
|
||||||
|
>
|
||||||
<input
|
<input
|
||||||
:type="optionType"
|
:type="optionType"
|
||||||
:name="props.path"
|
:name="props.path"
|
||||||
|
|||||||
+6
-1
@@ -55,6 +55,11 @@
|
|||||||
"ariaLabel": "Geht zur Einstellungsseite {page}"
|
"ariaLabel": "Geht zur Einstellungsseite {page}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"noSectionSelected": "Kein Einstellungsabschnitt ist ausgewählt."
|
"noSectionSelected": "Kein Einstellungsabschnitt ist ausgewählt.",
|
||||||
|
"selection": {
|
||||||
|
"option": {
|
||||||
|
"ariaLabel": "Wählt die Option {option} aus"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+6
-1
@@ -55,6 +55,11 @@
|
|||||||
"ariaLabel": "Goes to settings page {page}"
|
"ariaLabel": "Goes to settings page {page}"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"noSectionSelected": "No settings section is selected."
|
"noSectionSelected": "No settings section is selected.",
|
||||||
|
"selection": {
|
||||||
|
"option": {
|
||||||
|
"ariaLabel": "Selects option {option}"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user