style: update tertiary button
This commit is contained in:
parent
4a87c100d6
commit
bd4a51c830
@ -75,7 +75,7 @@ const ConnectAccount: React.FC<ConnectAccountInterface> = ({
|
|||||||
height={1000}
|
height={1000}
|
||||||
>
|
>
|
||||||
<Button
|
<Button
|
||||||
className="w-full sm:w-auto shadow-button"
|
className="w-full sm:w-auto"
|
||||||
leftIcon={<GithubIcon />}
|
leftIcon={<GithubIcon />}
|
||||||
variant="tertiary"
|
variant="tertiary"
|
||||||
>
|
>
|
||||||
@ -83,7 +83,7 @@ const ConnectAccount: React.FC<ConnectAccountInterface> = ({
|
|||||||
</Button>
|
</Button>
|
||||||
</OauthPopup>
|
</OauthPopup>
|
||||||
<Button
|
<Button
|
||||||
className="w-full sm:w-auto shadow-button"
|
className="w-full sm:w-auto"
|
||||||
leftIcon={<GitTeaIcon />}
|
leftIcon={<GitTeaIcon />}
|
||||||
variant="tertiary"
|
variant="tertiary"
|
||||||
>
|
>
|
||||||
|
@ -14,6 +14,8 @@ export const buttonTheme = tv(
|
|||||||
'whitespace-nowrap',
|
'whitespace-nowrap',
|
||||||
'focus-ring',
|
'focus-ring',
|
||||||
'disabled:cursor-not-allowed',
|
'disabled:cursor-not-allowed',
|
||||||
|
'transition-colors',
|
||||||
|
'duration-150',
|
||||||
],
|
],
|
||||||
variants: {
|
variants: {
|
||||||
size: {
|
size: {
|
||||||
@ -61,14 +63,13 @@ export const buttonTheme = tv(
|
|||||||
tertiary: [
|
tertiary: [
|
||||||
'text-elements-on-tertiary',
|
'text-elements-on-tertiary',
|
||||||
'border',
|
'border',
|
||||||
'border-border-interactive/10',
|
'border-border-interactive',
|
||||||
'bg-controls-tertiary',
|
'bg-controls-tertiary',
|
||||||
|
'shadow-button',
|
||||||
'hover:bg-controls-tertiary-hovered',
|
'hover:bg-controls-tertiary-hovered',
|
||||||
'hover:border-border-interactive-hovered',
|
'hover:border-border-interactive-hovered',
|
||||||
'hover:border-border-interactive-hovered/[0.14]',
|
|
||||||
'focus-visible:bg-controls-tertiary-hovered',
|
'focus-visible:bg-controls-tertiary-hovered',
|
||||||
'focus-visible:border-border-interactive-hovered',
|
'focus-visible:border-border-interactive-hovered',
|
||||||
'focus-visible:border-border-interactive-hovered/[0.14]',
|
|
||||||
'disabled:text-elements-on-disabled',
|
'disabled:text-elements-on-disabled',
|
||||||
'disabled:bg-controls-disabled',
|
'disabled:bg-controls-disabled',
|
||||||
'disabled:border-transparent',
|
'disabled:border-transparent',
|
||||||
@ -81,10 +82,8 @@ export const buttonTheme = tv(
|
|||||||
'bg-transparent',
|
'bg-transparent',
|
||||||
'hover:bg-controls-tertiary-hovered',
|
'hover:bg-controls-tertiary-hovered',
|
||||||
'hover:border-border-interactive-hovered',
|
'hover:border-border-interactive-hovered',
|
||||||
'hover:border-border-interactive-hovered/[0.14]',
|
|
||||||
'focus-visible:bg-controls-tertiary-hovered',
|
'focus-visible:bg-controls-tertiary-hovered',
|
||||||
'focus-visible:border-border-interactive-hovered',
|
'focus-visible:border-border-interactive-hovered',
|
||||||
'focus-visible:border-border-interactive-hovered/[0.14]',
|
|
||||||
'disabled:text-elements-on-disabled',
|
'disabled:text-elements-on-disabled',
|
||||||
'disabled:bg-controls-disabled',
|
'disabled:bg-controls-disabled',
|
||||||
'disabled:border-transparent',
|
'disabled:border-transparent',
|
||||||
@ -109,10 +108,8 @@ export const buttonTheme = tv(
|
|||||||
'bg-transparent',
|
'bg-transparent',
|
||||||
'hover:bg-controls-tertiary-hovered',
|
'hover:bg-controls-tertiary-hovered',
|
||||||
'hover:border-border-interactive-hovered',
|
'hover:border-border-interactive-hovered',
|
||||||
'hover:border-border-interactive-hovered/[0.14]',
|
|
||||||
'focus-visible:bg-controls-tertiary-hovered',
|
'focus-visible:bg-controls-tertiary-hovered',
|
||||||
'focus-visible:border-border-interactive-hovered',
|
'focus-visible:border-border-interactive-hovered',
|
||||||
'focus-visible:border-border-interactive-hovered/[0.14]',
|
|
||||||
'disabled:text-elements-on-disabled',
|
'disabled:text-elements-on-disabled',
|
||||||
'disabled:bg-controls-disabled',
|
'disabled:bg-controls-disabled',
|
||||||
'disabled:border-transparent',
|
'disabled:border-transparent',
|
||||||
|
@ -152,7 +152,7 @@ export default withMT({
|
|||||||
},
|
},
|
||||||
boxShadow: {
|
boxShadow: {
|
||||||
button:
|
button:
|
||||||
'inset 0px 0px 4px rgba(255, 255, 255, 0.25), inset 0px -2px 0px rgba(0, 0, 0, 0.04)',
|
'0px -2px 0px 0px rgba(0, 0, 0, 0.04) inset, 0px 0px 4px 0px rgba(255, 255, 255, 0.25) inset',
|
||||||
dropdown:
|
dropdown:
|
||||||
'0px 3px 20px rgba(8, 47, 86, 0.1), 0px 0px 4px rgba(8, 47, 86, 0.14)',
|
'0px 3px 20px rgba(8, 47, 86, 0.1), 0px 0px 4px rgba(8, 47, 86, 0.14)',
|
||||||
field: '0px 1px 2px rgba(0, 0, 0, 0.04)',
|
field: '0px 1px 2px rgba(0, 0, 0, 0.04)',
|
||||||
|
Loading…
Reference in New Issue
Block a user