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

This reverts commit 35f9c3aab5.
This commit is contained in:
Michael Zetterberg
2025-04-02 10:29:43 +02:00
parent b6db9757d8
commit be04600863
7 changed files with 8 additions and 78 deletions

View File

@@ -2,8 +2,6 @@ import { withThemeByClassName } from '@storybook/addon-themes'
import type { Preview, ReactRenderer } from '@storybook/react'
import 'react-material-symbols/rounded'
import '../lib/style.css'
import '../lib/fonts.css'

View File

@@ -5,7 +5,6 @@ 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',
@@ -150,15 +149,3 @@ export const TextSmall: Story = {
size: 'Small',
},
}
export const TextWithIcon: Story = {
args: {
...TextDefault.args,
children: (
<>
<MaterialIcon icon="add" color="CurrentColor" />
<span>Add room</span>
</>
),
},
}

View File

@@ -82,10 +82,6 @@
padding: var(--Space-x15) 0;
}
.variant-text:hover span:not(:global(.material-symbols)) {
text-decoration: underline;
}
.variant-icon {
background-color: transparent;
border-color: transparent;