fix(a11y): switches, icon buttons, selects and number inputs in Admin Settings have names (#33145)

This commit is contained in:
G30 authored and GitHub committed 2026-10-25 13:14:38 +09:00
1 parent 17065714bc
commit caae0be19b
16 files changed
+92 -10

No files matched your search

@@ -70,6 +70,7 @@
<div class="flex gap-1 items-center">
<Tooltip content={$i18n.t('Manage')} className="self-start">
<button
aria-label={$i18n.t('Manage')}
class="self-center p-1 bg-transparent hover:bg-gray-100 dark:hover:bg-gray-850 rounded-lg transition"
on:click={() => {
showManageModal = true;
@@ -82,6 +83,7 @@
<Tooltip content={$i18n.t('Configure')} className="self-start">
<button
aria-label={$i18n.t('Configure')}
class="self-center p-1 bg-transparent hover:bg-gray-100 dark:hover:bg-gray-850 rounded-lg transition"
on:click={() => {
showConfigModal = true;
@@ -95,6 +97,7 @@
<Tooltip content={(config?.enable ?? true) ? $i18n.t('Enabled') : $i18n.t('Disabled')}>
<Switch
bind:state={config.enable}
ariaLabel={$i18n.t('Enabled')}
on:change={() => {
config.enable = config.enable ?? false;
onSubmit({ url, key: config?.key ?? '', config });
@@ -96,6 +96,7 @@
<div class="flex gap-1 items-center">
<Tooltip content={$i18n.t('Configure')} className="self-start">
<button
aria-label={$i18n.t('Configure')}
class="self-center p-1 bg-transparent hover:bg-gray-100 dark:hover:bg-gray-850 rounded-lg transition"
on:click={() => {
showConfigModal = true;
@@ -109,6 +110,7 @@
<Tooltip content={(config?.enable ?? true) ? $i18n.t('Enabled') : $i18n.t('Disabled')}>
<Switch
bind:state={config.enable}
ariaLabel={$i18n.t('Enabled')}
on:change={() => {
config.enable = config.enable ?? false;
onSubmit({ url, key, config });