💄(frontend) introduce a new button's variant

'text' is reserved for discreet buttons. Inspired by Gmeet,
styles need to be refined. WIP, but mergeable as it is.
This commit is contained in:
lebaudantoine
2024-09-09 18:33:32 +02:00
committed by aleb_the_flash
parent b537cdfd93
commit 24242ef01a
3 changed files with 9 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ export const LowerAllHandsButton = ({
aria-label={t('participants.lowerParticipantsHand')}
size="sm"
fullWidth
invisible
variant="text"
onPress={() => lowerHandParticipants(participants)}
>
{t('participants.lowerParticipantsHand')}

View File

@@ -39,10 +39,10 @@ const MuteAlertDialog = ({
<Dialog isOpen={isOpen} role="alertdialog">
<P>{t('participants.muteParticipantAlert.description', { name })}</P>
<HStack gap={1}>
<Button size="sm" invisible onPress={onClose}>
<Button variant="text" size="sm" onPress={onClose}>
{t('participants.muteParticipantAlert.cancel')}
</Button>
<Button size="sm" invisible onPress={onSubmit}>
<Button variant="text" size="sm" onPress={onSubmit}>
{t('participants.muteParticipantAlert.confirm')}
</Button>
</HStack>

View File

@@ -73,6 +73,12 @@ export const buttonRecipe = cva({
backgroundColor: 'success.subtle!',
},
},
text: {
color: 'primary',
'&[data-hovered]': {
background: 'gray.100 !important',
},
},
danger: {
colorPalette: 'danger',
borderColor: 'danger.600',