💄(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>
|
<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')}
|
||||||
|
|||||||
@@ -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?.()
|
||||||
|
|||||||
@@ -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}
|
||||||
|
|||||||
@@ -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}
|
||||||
|
|||||||
@@ -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')}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -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"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -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()}
|
||||||
|
|||||||
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user