Skip to content

Commit da0606f

Browse files
[docs][material-ui] Update CSS variable usage in migration guide for Pigment CSS (@sai6855) (#46038)
Co-authored-by: sai chand <[email protected]>
1 parent 4d8f9b8 commit da0606f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/data/material/migration/upgrade-to-v6/migrating-to-pigment-css.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,10 +483,14 @@ If a value depends on a variable, you need to move it to a CSS variable inside i
483483
borderRadius: '50%',
484484
width: `max(6px - var(--offset), 3px)`,
485485
height: `max(6px - var(--offset), 3px)`,
486-
bgcolor: index === 0 ? 'primary.solidBg' : 'background.level3',
486+
bgcolor: `var(--bg)`,
487487
}}
488488
style={{
489489
'--offset': `${index}px`,
490+
'--bg':
491+
index === 0
492+
? 'var(--mui-palette-primary-solidBg)'
493+
: 'var(--mui-palette-background-level3)',
490494
}}
491495
/>
492496
))}

0 commit comments

Comments
 (0)