Commit 369c206
committed
fix(list): fixed list icon spacing to work with sass
I'm not sure why, but `sass` renders this as:
```
--rmd-icon-text-spacing: calc(
var(--rmd-list-text-keyline, 4.5rem)-var(--rmd-list-item-horizontal-padding, 1rem) -
var(--rmd-icon-size, 1.5rem)
);
```
Since there is no space between the two `var` calls in the calc, it
treats the value as `0`. This update makes it so `sass` renders this
correctly as:
```
--rmd-icon-text-spacing: calc(
var(--rmd-list-text-keyline, 4.5rem) -
var(--rmd-list-item-horizontal-padding, 1rem) -
var(--rmd-icon-size, 1.5rem)
);
```
Note: Added newlines for readability.
I also checked the other usage of `calc` + css variables throughout
react-md, and all of the others seem to work correctly. Super weird.
Closes #10151 parent cf8f0cb commit 369c206
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
169 | | - | |
170 | | - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| |||
0 commit comments