💄(frontend) replace grayscale button with a new variant

Button was looking disabled. Use an appropriate contrast.
This commit is contained in:
lebaudantoine
2024-12-02 17:32:09 +01:00
committed by aleb_the_flash
parent 39fdffd9a8
commit 60b7a35ed1
8 changed files with 20 additions and 8 deletions

View File

@@ -185,7 +185,7 @@ export const IntroSlider = () => {
<ButtonContainer> <ButtonContainer>
<ButtonVerticalCenter> <ButtonVerticalCenter>
<Button <Button
variant="greyscale" variant="secondaryText"
square square
aria-label={t('previous.label')} aria-label={t('previous.label')}
tooltip={t('previous.tooltip')} tooltip={t('previous.tooltip')}
@@ -221,7 +221,7 @@ export const IntroSlider = () => {
<ButtonContainer> <ButtonContainer>
<ButtonVerticalCenter> <ButtonVerticalCenter>
<Button <Button
variant="greyscale" variant="secondaryText"
square square
aria-label={t('next.label')} aria-label={t('next.label')}
tooltip={t('next.tooltip')} tooltip={t('next.tooltip')}

View File

@@ -63,7 +63,8 @@ export const InviteDialog = ({
</Heading> </Heading>
<Div position="absolute" top="5" right="5"> <Div position="absolute" top="5" right="5">
<Button <Button
variant="greyscale" invisible
variant="tertiaryText"
size="xs" size="xs"
onPress={() => { onPress={() => {
dialogProps.onClose?.() dialogProps.onClose?.()

View File

@@ -68,7 +68,7 @@ const StyledSidePanel = ({
> >
<Button <Button
invisible invisible
variant="greyscale" variant="tertiaryText"
size="xs" size="xs"
onPress={onClose} onPress={onClose}
aria-label={closeButtonTooltip} aria-label={closeButtonTooltip}

View File

@@ -106,7 +106,8 @@ export const ChatInput = ({
/> />
<Button <Button
square square
variant="secondaryText" invisible
variant="tertiaryText"
size="sm" size="sm"
onPress={handleSubmit} onPress={handleSubmit}
isDisabled={isDisabled} isDisabled={isDisabled}

View File

@@ -10,7 +10,7 @@ export const SettingsButton = () => {
<DialogTrigger> <DialogTrigger>
<Button <Button
square square
variant="greyscale" variant="secondaryText"
aria-label={t('settingsButtonLabel')} aria-label={t('settingsButtonLabel')}
tooltip={t('settingsButtonLabel')} tooltip={t('settingsButtonLabel')}
> >

View File

@@ -66,7 +66,7 @@ export const Header = () => {
<Menu> <Menu>
<Button <Button
size="sm" size="sm"
variant="greyscale" variant="secondaryText"
tooltip={t('loggedInUserTooltip')} tooltip={t('loggedInUserTooltip')}
tooltipType="delayed" tooltipType="delayed"
> >

View File

@@ -112,7 +112,7 @@ export const Dialog = ({
{!isAlert && ( {!isAlert && (
<Div position="absolute" top="5" right="5"> <Div position="absolute" top="5" right="5">
<Button <Button
variant="greyscale" variant="tertiaryText"
invisible invisible
size="xs" size="xs"
onPress={() => close()} onPress={() => close()}

View File

@@ -87,6 +87,16 @@ export const buttonRecipe = cva({
backgroundColor: 'primary.300', backgroundColor: 'primary.300',
}, },
}, },
tertiaryText: {
backgroundColor: 'transparent',
color: 'primary.900',
'&[data-hovered]': {
backgroundColor: 'primary.300',
},
'&[data-pressed]': {
backgroundColor: 'primary.300',
},
},
primaryDark: { primaryDark: {
backgroundColor: 'primaryDark.100', backgroundColor: 'primaryDark.100',
color: 'white', color: 'white',