Skip to content

Commit

Permalink
[ACS-5692] - fix focus for sidenav options (#3379)
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikiwanekhyland authored Aug 10, 2023
1 parent b790d3e commit 3f3b35d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,16 @@
<mat-expansion-panel-header expandedHeight="32px" collapsedHeight="32px" role="group">
<mat-panel-title>
<div class="item">
<button
<span
[attr.aria-label]="item.title | translate"
[id]="item.id"
[attr.title]="item.description | translate"
[attr.data-automation-id]="item.id"
mat-button
class="action-button full-width"
>
<adf-icon *ngIf="item.icon" [value]="item.icon"></adf-icon>
<span class="action-button__label">{{ item.title | translate }}</span>
</button>
</span>
</div>
</mat-panel-title>
</mat-expansion-panel-header>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@
}
}

.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled='true']):hover {
background: none;
.mat-expansion-panel-header:hover {
background: var(--adf-theme-background-hover-color);
}

.item {
Expand All @@ -119,6 +119,7 @@
height: 32px;
padding: 0 24px;
border-radius: 0;
line-height: 32px;
}

.full-width {
Expand Down
1 change: 1 addition & 0 deletions projects/aca-content/src/lib/ui/overrides/ay11.scss
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@

.mat-expansion-panel .mat-expansion-panel-header {
border: 2px solid transparent;
box-sizing: border-box;

.mat-button-base.mat-button {
outline: none;
Expand Down

0 comments on commit 3f3b35d

Please sign in to comment.