Improved color display.

This commit is contained in:
Tom Butcher 2026-07-13 22:38:26 +01:00
parent 00243b0e5e
commit 287a9615b8
2 changed files with 2 additions and 1 deletions

View File

@ -41,6 +41,7 @@
.ant-steps-icon, .ant-steps-icon,
.ant-color-picker-presets-label, .ant-color-picker-presets-label,
.ant-select-selection-item, .ant-select-selection-item,
.ant-color-picker-trigger-text,
[class*=' ant-radio'] { [class*=' ant-radio'] {
font-family: 'DM Sans'; font-family: 'DM Sans';
} }

View File

@ -269,7 +269,7 @@ const ObjectProperty = ({
} }
case 'color': { case 'color': {
if (value) { if (value) {
return <Badge color={value} text={value} /> return <Badge color={value} count={value.toUpperCase()} />
} else { } else {
return ( return (
<Text type='secondary' {...textParams}> <Text type='secondary' {...textParams}>