Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit dbfc176

Browse files
Googlernshahan
authored andcommitted
Change the cursor to make it clear that the entire filter category is clickable.
Also add some space between group title and expansion icon. PiperOrigin-RevId: 188115871
1 parent 67398ca commit dbfc176

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

lib/material_menu/menu_item_groups.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<div *ngIf="group.hasLabel"
1515
buttonDecorator
1616
class="group-header"
17+
[class.is-collapsible]="group.isCollapsible"
1718
(trigger)="toggleExpansionIfCollapsible(group)">
1819
<div class="group-label">
1920
{{group.uiDisplayName}}

lib/material_menu/menu_item_groups.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,15 @@ $menu-item-selector: '.menu-item';
2424
// To layout label and expansion button.
2525
display: flex;
2626
justify-content: space-between;
27+
28+
&.is-collapsible {
29+
cursor: pointer;
30+
}
2731
}
2832

2933
.expansion-icon {
3034
cursor: pointer;
35+
margin-left: $mat-grid;
3136
}
3237

3338
#{$menu-item-selector} {

0 commit comments

Comments
 (0)