💄(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:
committed by
aleb_the_flash
parent
b537cdfd93
commit
24242ef01a
@@ -17,7 +17,7 @@ export const LowerAllHandsButton = ({
|
|||||||
aria-label={t('participants.lowerParticipantsHand')}
|
aria-label={t('participants.lowerParticipantsHand')}
|
||||||
size="sm"
|
size="sm"
|
||||||
fullWidth
|
fullWidth
|
||||||
invisible
|
variant="text"
|
||||||
onPress={() => lowerHandParticipants(participants)}
|
onPress={() => lowerHandParticipants(participants)}
|
||||||
>
|
>
|
||||||
{t('participants.lowerParticipantsHand')}
|
{t('participants.lowerParticipantsHand')}
|
||||||
|
|||||||
@@ -39,10 +39,10 @@ const MuteAlertDialog = ({
|
|||||||
<Dialog isOpen={isOpen} role="alertdialog">
|
<Dialog isOpen={isOpen} role="alertdialog">
|
||||||
<P>{t('participants.muteParticipantAlert.description', { name })}</P>
|
<P>{t('participants.muteParticipantAlert.description', { name })}</P>
|
||||||
<HStack gap={1}>
|
<HStack gap={1}>
|
||||||
<Button size="sm" invisible onPress={onClose}>
|
<Button variant="text" size="sm" onPress={onClose}>
|
||||||
{t('participants.muteParticipantAlert.cancel')}
|
{t('participants.muteParticipantAlert.cancel')}
|
||||||
</Button>
|
</Button>
|
||||||
<Button size="sm" invisible onPress={onSubmit}>
|
<Button variant="text" size="sm" onPress={onSubmit}>
|
||||||
{t('participants.muteParticipantAlert.confirm')}
|
{t('participants.muteParticipantAlert.confirm')}
|
||||||
</Button>
|
</Button>
|
||||||
</HStack>
|
</HStack>
|
||||||
|
|||||||
@@ -73,6 +73,12 @@ export const buttonRecipe = cva({
|
|||||||
backgroundColor: 'success.subtle!',
|
backgroundColor: 'success.subtle!',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
text: {
|
||||||
|
color: 'primary',
|
||||||
|
'&[data-hovered]': {
|
||||||
|
background: 'gray.100 !important',
|
||||||
|
},
|
||||||
|
},
|
||||||
danger: {
|
danger: {
|
||||||
colorPalette: 'danger',
|
colorPalette: 'danger',
|
||||||
borderColor: 'danger.600',
|
borderColor: 'danger.600',
|
||||||
|
|||||||
Reference in New Issue
Block a user