fix(SW-2101): do not apply underline to Material icons inside Link and Button

This commit is contained in:
Michael Zetterberg
2025-03-31 16:36:31 +02:00
parent d513184be4
commit 35f9c3aab5
7 changed files with 78 additions and 8 deletions

View File

@@ -5,6 +5,7 @@ import { fn } from '@storybook/test'
import { Button } from './Button'
import { config as buttonConfig } from './variants'
import { config as typographyConfig } from '../Typography/variants'
import { MaterialIcon } from '../Icons'
const meta: Meta<typeof Button> = {
title: 'Components/Button',
@@ -149,3 +150,15 @@ export const TextSmall: Story = {
size: 'Small',
},
}
export const TextWithIcon: Story = {
args: {
...TextDefault.args,
children: (
<>
<MaterialIcon icon="add" color="CurrentColor" />
<span>Add room</span>
</>
),
},
}