Skip to content

Commit 22b0e15

Browse files
feat(list,menu): support styling gap on items
PiperOrigin-RevId: 878769823
1 parent 5a9f7da commit 22b0e15

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

list/internal/listitem/_list-item.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
:host {
3535
border-radius: map.get($tokens, 'container-shape');
3636
display: flex;
37+
gap: 16px;
3738
-webkit-tap-highlight-color: transparent;
3839

3940
@include ripple.theme(
@@ -77,6 +78,7 @@
7778
border-radius: inherit;
7879
display: flex;
7980
flex: 1;
81+
gap: inherit;
8082
max-width: inherit;
8183
min-width: inherit;
8284
outline: none;
@@ -116,6 +118,7 @@
116118
padding-bottom: map.get($tokens, 'bottom-space');
117119
padding-inline-start: map.get($tokens, 'leading-space');
118120
padding-inline-end: map.get($tokens, 'trailing-space');
121+
gap: inherit;
119122
}
120123

121124
md-item[multiline] {

menu/internal/menuitem/_menu-item.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
:host {
3737
border-radius: map.get($tokens, 'container-shape');
3838
display: flex;
39+
gap: 16px;
3940

4041
@include ripple.theme(
4142
(
@@ -78,6 +79,7 @@
7879
border-radius: inherit;
7980
display: flex;
8081
flex: 1;
82+
gap: inherit;
8183
max-width: inherit;
8284
min-width: inherit;
8385
outline: none;
@@ -110,6 +112,7 @@
110112
padding-bottom: map.get($tokens, 'bottom-space');
111113
padding-inline-start: map.get($tokens, 'leading-space');
112114
padding-inline-end: map.get($tokens, 'trailing-space');
115+
gap: inherit;
113116
}
114117

115118
md-item[multiline] {

0 commit comments

Comments
 (0)