Deprecate need for revert-layer CSS (#37632)

This commit is contained in:
Echo authored and GitHub committed 2026-01-27 14:45:35 +00:00
1 parent 9ea64fcb5a
commit 76ab866d93
6 files changed
+17 -13

No files matched your search

+8 -1
View File
@@ -13,6 +13,7 @@ interface Props extends React.SVGProps<SVGSVGElement> {
children?: never;
id: string;
icon: IconProp;
noFill?: boolean;
}
export const Icon: React.FC<Props> = ({
@@ -20,6 +21,7 @@ export const Icon: React.FC<Props> = ({
icon: IconComponent,
className,
'aria-label': ariaLabel,
noFill = false,
...other
}) => {
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
@@ -42,7 +44,12 @@ export const Icon: React.FC<Props> = ({
return (
<IconComponent
className={classNames('icon', `icon-${id}`, className)}
className={classNames(
'icon',
`icon-${id}`,
noFill && 'icon--no-fill',
className,
)}
title={title}
aria-hidden={ariaHidden}
aria-label={ariaLabel}