mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
fix(module): stop using tailwind's shorthand arbitrary variable syntax (#2366)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
@@ -13,7 +13,7 @@ describe('Avatar', () => {
|
||||
['with text', { props: { text: '+1' } }],
|
||||
['with icon', { props: { icon: 'i-heroicons-photo' } }],
|
||||
...sizes.map((size: string) => [`with size ${size}`, { props: { src: 'https://avatars.githubusercontent.com/u/739984?v=4', size } }]),
|
||||
['with class', { props: { class: 'bg-[--ui-bg]' } }],
|
||||
['with class', { props: { class: 'bg-[var(--ui-bg)]' } }],
|
||||
['with ui', { props: { ui: { fallback: 'font-bold' } } }]
|
||||
])('renders %s correctly', async (nameOrHtml: string, options: { props?: AvatarProps }) => {
|
||||
const html = await ComponentRender(nameOrHtml, options, Avatar)
|
||||
|
||||
Reference in New Issue
Block a user