mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
Merge pull request #15293 from itk-dev/feature/make-toggle-button-accessible
feat: aria-pressed and aria-label
This commit is contained in:
commit
d4fcf561e5
@ -497,6 +497,10 @@
|
|||||||
<button
|
<button
|
||||||
class="p-1 text-xs flex rounded-sm transition"
|
class="p-1 text-xs flex rounded-sm transition"
|
||||||
type="button"
|
type="button"
|
||||||
|
aria-pressed={enableDescription ? 'true' : 'false'}
|
||||||
|
aria-label={enableDescription
|
||||||
|
? $i18n.t('Custom description enabled')
|
||||||
|
: $i18n.t('Default description enabled')}
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
enableDescription = !enableDescription;
|
enableDescription = !enableDescription;
|
||||||
}}
|
}}
|
||||||
|
Loading…
Reference in New Issue
Block a user