Skip to content

Commit f345ab1

Browse files
improvement aria attr
1 parent 739d069 commit f345ab1

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

projects/voicecapture-angular/src/lib/voicecapture-angular.component.html

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,27 @@
44
(click)="deactivateVoice()"
55
[ngClass]="mode"
66
>
7-
<button class="exit" type="button" (click)="deactivateVoice()">
8-
<i class="icon icon-exit">X</i>
7+
<button
8+
class="exit"
9+
(click)="deactivateVoice()"
10+
aria-label="Close voice capture"
11+
type="button"
12+
>
13+
<i class="icon icon-exit" aria-hidden="true">X</i>
914
</button>
10-
<p class="text-tip"></p>
11-
<button type="button" class="btn-voice" [class.active]="animationButton">
15+
<p class="text-tip" aria-live="polite"></p>
16+
<button
17+
class="btn-voice"
18+
[class.active]="animationButton"
19+
aria-label="Start voice capture"
20+
type="button"
21+
>
1222
<svg
1323
xmlns="http://www.w3.org/2000/svg"
1424
viewBox="0 0 24 24"
1525
width="24"
1626
height="24"
27+
aria-hidden="true"
1728
>
1829
<path
1930
d="M17 11.998c0 2.76-2.23 5-4.99 5l-.002.002a4.994 4.994 0 01-4.979-5h-2c0 3.52 2.59 6.433 5.98 6.92v3.078h.01V22h2v-3.08h-.01A6.982 6.982 0 0019 11.998z"

0 commit comments

Comments
 (0)