Commit 2131893a authored by tom's avatar tom

update button styles and screenshots

parent c90bfafd
...@@ -47,7 +47,7 @@ const variantOutline = defineStyle((props) => { ...@@ -47,7 +47,7 @@ const variantOutline = defineStyle((props) => {
const isGrayTheme = c === 'gray' || c === 'gray-dark'; const isGrayTheme = c === 'gray' || c === 'gray-dark';
const color = isGrayTheme ? mode('blackAlpha.800', 'whiteAlpha.800')(props) : mode(`${ c }.600`, `${ c }.300`)(props); const color = isGrayTheme ? mode('blackAlpha.800', 'whiteAlpha.800')(props) : mode(`${ c }.600`, `${ c }.300`)(props);
const borderColor = isGrayTheme ? mode('gray.300', 'gray.600')(props) : mode(`${ c }.600`, `${ c }.300`)(props); const borderColor = isGrayTheme ? mode('gray.200', 'gray.600')(props) : mode(`${ c }.600`, `${ c }.300`)(props);
const activeBg = isGrayTheme ? mode('blue.50', 'gray.600')(props) : mode(`${ c }.50`, 'gray.600')(props); const activeBg = isGrayTheme ? mode('blue.50', 'gray.600')(props) : mode(`${ c }.50`, 'gray.600')(props);
const activeColor = (() => { const activeColor = (() => {
if (c === 'gray') { if (c === 'gray') {
......
...@@ -2,6 +2,7 @@ import { selectAnatomy as parts } from '@chakra-ui/anatomy'; ...@@ -2,6 +2,7 @@ import { selectAnatomy as parts } from '@chakra-ui/anatomy';
import { import {
createMultiStyleConfigHelpers, createMultiStyleConfigHelpers,
} from '@chakra-ui/styled-system'; } from '@chakra-ui/styled-system';
import { mode } from '@chakra-ui/theme-tools';
import Input from './Input'; import Input from './Input';
...@@ -12,10 +13,15 @@ const variantOutline = definePartsStyle((props) => { ...@@ -12,10 +13,15 @@ const variantOutline = definePartsStyle((props) => {
return { return {
field: { field: {
...Input.variants?.outline(props).field, ...Input.variants?.outline(props).field,
borderColor: mode('gray.200', 'gray.600')(props),
_hover: {
borderColor: mode('gray.300', 'gray.500')(props),
},
_focusVisible: { _focusVisible: {
borderColor: Input.variants?.outline(props).field.borderColor, borderColor: mode('gray.200', 'gray.600')(props),
boxShadow: 'none', boxShadow: 'none',
}, },
cursor: 'pointer',
}, },
}; };
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment