From 0e06c87cf41f72d347970d18013e155c7e41b234 Mon Sep 17 00:00:00 2001 From: splincode Date: Fri, 11 Oct 2024 12:36:11 +0300 Subject: [PATCH] refactor: improve a11y --- .../textfield/textfield.template.html | 4 ++- .../components/app-bar/examples/1/index.html | 8 +++-- .../components/app-bar/examples/3/index.html | 8 +++-- .../components/carousel/examples/4/index.html | 8 +++-- .../data-list/examples/2/index.html | 4 ++- .../data-list/examples/3/index.html | 8 +++-- .../input-files/examples/3/index.html | 1 + .../input-slider/examples/2/index.html | 8 +++-- .../mobile-calendar/examples/4/index.html | 4 ++- .../mobile-calendar/examples/5/index.html | 4 ++- .../primitive-textfield/examples/1/index.html | 4 ++- .../components/slider/examples/6/index.html | 8 +++-- .../swipe-action/examples/1/index.html | 32 ++++++++++++++----- .../swipe-action/examples/2/index.html | 4 ++- .../swipe-action/examples/3/index.html | 24 ++++++++++---- .../swipe-action/examples/4/index.html | 8 +++-- .../swipe-action/examples/5/index.html | 12 +++++-- .../components/tag/examples/3/index.html | 4 ++- .../components/tag/examples/6/index.html | 8 +++-- .../dropdown-hover/examples/2/index.html | 4 ++- .../dropdown-open/examples/4/index.html | 4 ++- .../hint-describe/examples/1/index.html | 4 ++- .../pagination/pagination.style.less | 1 + .../pagination/pagination.template.html | 4 ++- .../components/preview/preview.template.html | 4 ++- .../preview/zoom/preview-zoom.template.html | 4 ++- .../tree-item-content.template.html | 4 ++- .../app-bar/app-bar-back.style.less | 1 + .../color-selector.template.html | 4 ++- .../palette/palette.template.html | 4 ++- 30 files changed, 150 insertions(+), 49 deletions(-) diff --git a/projects/core/components/textfield/textfield.template.html b/projects/core/components/textfield/textfield.template.html index aba2f6b964ca..9f4b1af791e5 100644 --- a/projects/core/components/textfield/textfield.template.html +++ b/projects/core/components/textfield/textfield.template.html @@ -18,7 +18,9 @@ [iconStart]="icons.close" (click)="directive?.setValue(null)" (pointerdown.silent.prevent)="input?.nativeElement?.focus()" - > + > + Clear + diff --git a/projects/demo/src/modules/components/app-bar/examples/1/index.html b/projects/demo/src/modules/components/app-bar/examples/1/index.html index 45a62a964c05..bd07656828b1 100644 --- a/projects/demo/src/modules/components/app-bar/examples/1/index.html +++ b/projects/demo/src/modules/components/app-bar/examples/1/index.html @@ -40,7 +40,9 @@

iOS

tuiAppBarBack tuiSlot="left" type="button" - > + > + Back + Taiga UI Android tuiAppBarBack tuiSlot="left" type="button" - > + > + Back + diff --git a/projects/demo/src/modules/components/input-slider/examples/2/index.html b/projects/demo/src/modules/components/input-slider/examples/2/index.html index 7a9cfa37e1a3..cf1916f17fbf 100644 --- a/projects/demo/src/modules/components/input-slider/examples/2/index.html +++ b/projects/demo/src/modules/components/input-slider/examples/2/index.html @@ -16,7 +16,9 @@ tuiIconButton type="button" (click)="decrease()" - > + > + Decrease + 20% 40% @@ -30,6 +32,8 @@ tuiIconButton type="button" (click)="increase()" - > + > + Increase + diff --git a/projects/demo/src/modules/components/mobile-calendar/examples/4/index.html b/projects/demo/src/modules/components/mobile-calendar/examples/4/index.html index c6d44590c9dd..a98bf385d99e 100644 --- a/projects/demo/src/modules/components/mobile-calendar/examples/4/index.html +++ b/projects/demo/src/modules/components/mobile-calendar/examples/4/index.html @@ -6,7 +6,9 @@ type="button" [style.border-radius.%]="100" (click)="onClick()" - > + > + Calendar + + > + Calendar + + > + Toggle password visibility + {{ hint }} diff --git a/projects/demo/src/modules/components/slider/examples/6/index.html b/projects/demo/src/modules/components/slider/examples/6/index.html index dc815b948999..9ca6ca1fd93d 100644 --- a/projects/demo/src/modules/components/slider/examples/6/index.html +++ b/projects/demo/src/modules/components/slider/examples/6/index.html @@ -7,7 +7,9 @@ type="button" class="minus" (click)="change(-0.25)" - > + > + Minus +