|
5 | 5 | @use '@material/feature-targeting/index' as feature-targeting;
|
6 | 6 | @use '@material/typography/index' as typography;
|
7 | 7 | @use '@material/ripple/ripple' as ripple;
|
| 8 | +@use '@smui/paper/mixins' as paper; |
8 | 9 |
|
9 | 10 | $ripple-target: '.smui-accordion__header__ripple';
|
10 | 11 | $panel-padding: 16px 24px !default;
|
@@ -134,16 +135,24 @@ $divider-color-on-dark-bg: rgba(255, 255, 255, 0.2) !default;
|
134 | 135 | }
|
135 | 136 | }
|
136 | 137 |
|
| 138 | + // Round the corners of the shadow pseudo-element too. |
| 139 | + &.smui-paper--rounded::before { |
| 140 | + @include paper.shape-radius(medium, $query: $query); |
| 141 | + } |
| 142 | + |
137 | 143 | // Square off the corners of all but the first and last panels.
|
138 |
| - &:first-child:not(:last-child) { |
| 144 | + &:first-child:not(:last-child), |
| 145 | + &:first-child:not(:last-child)::before { |
139 | 146 | border-bottom-left-radius: 0;
|
140 | 147 | border-bottom-right-radius: 0;
|
141 | 148 | }
|
142 |
| - &:last-child:not(:first-child) { |
| 149 | + &:last-child:not(:first-child), |
| 150 | + &:last-child:not(:first-child)::before { |
143 | 151 | border-top-left-radius: 0;
|
144 | 152 | border-top-right-radius: 0;
|
145 | 153 | }
|
146 |
| - &:not(:first-child, :last-child) { |
| 154 | + &:not(:first-child, :last-child), |
| 155 | + &:not(:first-child, :last-child)::before { |
147 | 156 | border-radius: 0;
|
148 | 157 | }
|
149 | 158 |
|
|
0 commit comments