add dark grey dropdown button (#588)

* a dark grey dropdown button

* Create nasty-dots-eat.md
This commit is contained in:
Jakub Kotula 2024-10-01 19:10:02 +02:00 committed by GitHub
parent 4452f0524f
commit 273db4ed9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 24 additions and 13 deletions

View File

@ -0,0 +1,5 @@
---
"@status-im/components": patch
---
add dark grey dropdown button

View File

@ -22,18 +22,20 @@ export default {
render: args => (
<div className="grid gap-4">
{(['primary', 'grey', 'outline', 'ghost'] as const).map(variant => (
<div key={variant} className="flex items-center gap-4">
{(['40', '32', '24'] as const).map(size => (
<DropdownButton
key={size}
{...args}
variant={variant}
size={size}
/>
))}
</div>
))}
{(['primary', 'grey', 'darkGrey', 'outline', 'ghost'] as const).map(
variant => (
<div key={variant} className="flex items-center gap-4">
{(['40', '32', '24'] as const).map(size => (
<DropdownButton
key={size}
{...args}
variant={variant}
size={size}
/>
))}
</div>
),
)}
</div>
),
} satisfies Meta<typeof DropdownButton>

View File

@ -13,7 +13,7 @@ type ButtonProps = Extract<
type Props = ButtonProps & {
variant?: Extract<
ButtonProps['variant'],
'primary' | 'grey' | 'outline' | 'ghost'
'primary' | 'grey' | 'outline' | 'ghost' | 'darkGrey'
>
iconAfter?: never
}
@ -53,6 +53,10 @@ const iconStyles = cva({
'text-neutral-100 dark:text-white-100',
'[&>path[fill="#E7EAEE"]]:dark:fill-neutral-80',
],
darkGrey: [
'text-neutral-100 dark:text-white-100',
'[&>path[fill="#E7EAEE"]]:dark:fill-neutral-80',
],
},
},
})