Skip to content

Commit cc62689

Browse files
committed
fix(material/list): fix duplicate focus with chromevox on action items
For the list component, fix chromevox screenreader bug where it duplicated focus on each item in the action list. After focusing on a `button` in the action list, linearly navigating forward moved focus to the `.mat-list-item-content` of the same item. Fixes this by change the list item content from a `div` to `span`, since we're generally not supposed to use div's inside buttons.
1 parent 9107ac0 commit cc62689

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/material/list/list-item.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="mat-list-item-content">
1+
<span class="mat-list-item-content">
22
<div class="mat-list-item-ripple" mat-ripple
33
[matRippleTrigger]="_getHostElement()"
44
[matRippleDisabled]="_isRippleDisabled()">
@@ -10,4 +10,4 @@
1010
<div class="mat-list-text"><ng-content select="[mat-line], [matLine]"></ng-content></div>
1111

1212
<ng-content></ng-content>
13-
</div>
13+
</span>

0 commit comments

Comments
 (0)