💄(frontend) replace grayscale button with a new variant
Button was looking disabled. Use an appropriate contrast.
This commit is contained in:
committed by
aleb_the_flash
parent
39fdffd9a8
commit
60b7a35ed1
@@ -185,7 +185,7 @@ export const IntroSlider = () => {
|
||||
<ButtonContainer>
|
||||
<ButtonVerticalCenter>
|
||||
<Button
|
||||
variant="greyscale"
|
||||
variant="secondaryText"
|
||||
square
|
||||
aria-label={t('previous.label')}
|
||||
tooltip={t('previous.tooltip')}
|
||||
@@ -221,7 +221,7 @@ export const IntroSlider = () => {
|
||||
<ButtonContainer>
|
||||
<ButtonVerticalCenter>
|
||||
<Button
|
||||
variant="greyscale"
|
||||
variant="secondaryText"
|
||||
square
|
||||
aria-label={t('next.label')}
|
||||
tooltip={t('next.tooltip')}
|
||||
|
||||
@@ -63,7 +63,8 @@ export const InviteDialog = ({
|
||||
</Heading>
|
||||
<Div position="absolute" top="5" right="5">
|
||||
<Button
|
||||
variant="greyscale"
|
||||
invisible
|
||||
variant="tertiaryText"
|
||||
size="xs"
|
||||
onPress={() => {
|
||||
dialogProps.onClose?.()
|
||||
|
||||
@@ -68,7 +68,7 @@ const StyledSidePanel = ({
|
||||
>
|
||||
<Button
|
||||
invisible
|
||||
variant="greyscale"
|
||||
variant="tertiaryText"
|
||||
size="xs"
|
||||
onPress={onClose}
|
||||
aria-label={closeButtonTooltip}
|
||||
|
||||
@@ -106,7 +106,8 @@ export const ChatInput = ({
|
||||
/>
|
||||
<Button
|
||||
square
|
||||
variant="secondaryText"
|
||||
invisible
|
||||
variant="tertiaryText"
|
||||
size="sm"
|
||||
onPress={handleSubmit}
|
||||
isDisabled={isDisabled}
|
||||
|
||||
@@ -10,7 +10,7 @@ export const SettingsButton = () => {
|
||||
<DialogTrigger>
|
||||
<Button
|
||||
square
|
||||
variant="greyscale"
|
||||
variant="secondaryText"
|
||||
aria-label={t('settingsButtonLabel')}
|
||||
tooltip={t('settingsButtonLabel')}
|
||||
>
|
||||
|
||||
@@ -66,7 +66,7 @@ export const Header = () => {
|
||||
<Menu>
|
||||
<Button
|
||||
size="sm"
|
||||
variant="greyscale"
|
||||
variant="secondaryText"
|
||||
tooltip={t('loggedInUserTooltip')}
|
||||
tooltipType="delayed"
|
||||
>
|
||||
|
||||
@@ -112,7 +112,7 @@ export const Dialog = ({
|
||||
{!isAlert && (
|
||||
<Div position="absolute" top="5" right="5">
|
||||
<Button
|
||||
variant="greyscale"
|
||||
variant="tertiaryText"
|
||||
invisible
|
||||
size="xs"
|
||||
onPress={() => close()}
|
||||
|
||||
@@ -87,6 +87,16 @@ export const buttonRecipe = cva({
|
||||
backgroundColor: 'primary.300',
|
||||
},
|
||||
},
|
||||
tertiaryText: {
|
||||
backgroundColor: 'transparent',
|
||||
color: 'primary.900',
|
||||
'&[data-hovered]': {
|
||||
backgroundColor: 'primary.300',
|
||||
},
|
||||
'&[data-pressed]': {
|
||||
backgroundColor: 'primary.300',
|
||||
},
|
||||
},
|
||||
primaryDark: {
|
||||
backgroundColor: 'primaryDark.100',
|
||||
color: 'white',
|
||||
|
||||
Reference in New Issue
Block a user