fix(ui): InvEditable, linear field view styling

This commit is contained in:
psychedelicious 2023-12-29 17:01:07 +11:00 committed by Kent Keirsey
parent cd292f6c1c
commit 4134f18319
3 changed files with 8 additions and 4 deletions

View File

@ -54,7 +54,7 @@ const getColors = (
const bgColorHover = c === 'invokeYellow' ? `${c}.300` : `${c}.300`;
const notSolidFg = {
fg: c === 'base' ? 'base.100' : bgColor,
fg: c === 'base' ? 'base.300' : bgColor,
fgHover: c === 'base' ? 'base.50' : bgColorHover,
fgDisabled: 'base.600',
};

View File

@ -8,13 +8,17 @@ const { definePartsStyle, defineMultiStyleConfig } =
createMultiStyleConfigHelpers(parts.keys);
const baseStylePreview = defineStyle({
fontSize: 'md',
borderRadius: 'md',
py: '1',
transitionProperty: 'common',
transitionDuration: 'normal',
color: 'base.100'
});
const baseStyleInput = defineStyle(() => ({
color: 'base.100',
fontSize: 'md',
borderRadius: 'md',
py: '1',
transitionProperty: 'common',
@ -23,8 +27,8 @@ const baseStyleInput = defineStyle(() => ({
_focusVisible: { boxShadow: 'none' },
_placeholder: { opacity: 0.6 },
'::selection': {
color: 'blue.50',
bg: 'blue.400',
color: 'blue.900',
bg: 'blue.300',
},
}));

View File

@ -58,7 +58,7 @@ const LinearViewField = ({ nodeId, fieldName }: Props) => {
placement="top"
>
<Flex h="full" alignItems="center">
<Icon as={FaInfoCircle} />
<Icon fontSize="sm" color="base.300" as={FaInfoCircle} />
</Flex>
</InvTooltip>
<InvIconButton