|
21 | 21 | /// @param {Color} $item-hover-text-color [null] - The item's hover text color.
|
22 | 22 | /// @param {Color} $item-hover-icon-color [null] - The item's hover icon color.
|
23 | 23 | /// @param {Color} $shadow [null] - Sets a custom shadow to be used by the drawer.
|
24 |
| -/// @param {border-radius} $border-radius [null] - The border radius used for navdrawer item. |
| 24 | +/// @param {border-radius} $border-radius [null] - The border radius used for the navdrawer. |
| 25 | +/// @param {item-border-radius} $item-border-radius [null] - The border radius used for the navdrawer items. |
25 | 26 | ///
|
26 | 27 | /// @requires $default-palette
|
27 | 28 | /// @requires $light-schema
|
|
46 | 47 | $elevations: $elevations,
|
47 | 48 |
|
48 | 49 | $border-radius: null,
|
| 50 | + $item-border-radius: null, |
49 | 51 |
|
50 | 52 | $background: null,
|
51 | 53 | $border-color: null,
|
|
71 | 73 | if($border-radius, $border-radius, map-get($navdrawer-schema, 'border-radius')), 0, 36px
|
72 | 74 | );
|
73 | 75 |
|
| 76 | + $item-border-radius: round-borders( |
| 77 | + if($item-border-radius, $item-border-radius, map-get($navdrawer-schema, 'item-border-radius')), 0, 24px |
| 78 | + ); |
| 79 | + |
74 | 80 | @if not($item-header-text-color) and $background {
|
75 | 81 | $item-header-text-color: text-contrast($background);
|
76 | 82 | }
|
|
116 | 122 | name: $name,
|
117 | 123 | palette: $palette,
|
118 | 124 | border-radius: $border-radius,
|
| 125 | + item-border-radius: $item-border-radius, |
119 | 126 | background: $background,
|
120 | 127 | border-color: $border-color,
|
121 | 128 | item-text-color:$item-text-color,
|
|
246 | 253 | display: flex;
|
247 | 254 | flex-flow: row nowrap;
|
248 | 255 | color: --var($theme, 'item-text-color');
|
249 |
| - max-height: 48px; |
250 |
| - padding: 12px 16px; |
| 256 | + max-height: rem(48px); |
| 257 | + padding: rem(12px) rem(16px); |
251 | 258 | cursor: pointer;
|
252 | 259 | align-items: center;
|
253 | 260 | user-select: none;
|
254 | 261 | outline: transparent;
|
255 | 262 | white-space: nowrap;
|
256 |
| - border-radius: 4px; |
257 |
| - margin: 8px; |
| 263 | + border-radius: --var($theme, 'item-border-radius'); |
| 264 | + margin: rem(8px); |
258 | 265 |
|
259 | 266 | > igx-icon + span {
|
260 |
| - margin-left: 32px; |
| 267 | + margin-left: rem(32px); |
261 | 268 | }
|
262 | 269 |
|
263 | 270 | &[dir='rtl'] {
|
264 | 271 | > igx-icon + span {
|
265 |
| - margin-right: 32px; |
| 272 | + margin-right: rem(32px); |
266 | 273 | }
|
267 | 274 | }
|
268 | 275 |
|
|
303 | 310 |
|
304 | 311 | %item--header {
|
305 | 312 | display: block;
|
306 |
| - padding: 12px 16px; |
| 313 | + padding: rem(12px) rem(16px); |
307 | 314 | white-space: nowrap;
|
308 | 315 | color: --var($theme, 'item-header-text-color');
|
309 | 316 | }
|
|
0 commit comments