Merged in fix/icons-4 (pull request #3472)

Icon fix

* Icon fix
This commit is contained in:
Linus Flood
2026-01-21 14:09:05 +00:00
parent 5e60dd8581
commit 510653f2ee

View File

@@ -12,6 +12,7 @@ export interface MaterialIconProps
size?: number
styleName?: "outlined" | "rounded" | "sharp"
isFilled?: boolean
className?: string
}
export type MaterialIconSetIconProps = Omit<MaterialIconProps, "icon">
@@ -22,7 +23,8 @@ export function MaterialIcon({
styleName = "outlined",
color = "CurrentColor",
isFilled,
...props
className,
...rest
}: MaterialIconProps) {
const iconStyles = materialIcons[icon]
@@ -55,8 +57,8 @@ export function MaterialIcon({
<span
data-testid="MaterialIcon"
data-icon-name={icon}
className={cx(styles.iconWrapper, props.className)}
{...props}
className={cx(styles.iconWrapper, className)}
{...rest}
>
<IconComponent
width={size}