Skip to content

Commit 118f850

Browse files
authored
Sync jp-border-radius with corner-control-radius (#68)
1 parent 0c62e71 commit 118f850

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/components/src/utilities/theme/applyTheme.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import {
2020
accentPalette,
2121
baseLayerLuminance,
2222
bodyFont,
23+
controlCornerRadius,
2324
neutralPalette,
2425
strokeWidth,
2526
typeRampBaseFontSize
@@ -110,6 +111,10 @@ const tokenMappings: { [key: string]: IConverter<any> } = {
110111
converter: intConverter,
111112
token: strokeWidth
112113
},
114+
'--jp-border-radius': {
115+
converter: intConverter,
116+
token: controlCornerRadius
117+
},
113118
'--jp-layout-color1': {
114119
converter: (value: string, isDark: boolean): Palette<Swatch> | null => {
115120
const parsedColor = parseColor(value);

0 commit comments

Comments
 (0)