Skip to content

Commit 4df714b

Browse files
committed
partial revert to get icons in buttons working again
1 parent 8959586 commit 4df714b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/@react-spectrum/s2/src/Icon.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export function createIllustration(Component: ComponentType<SVGProps<SVGSVGEleme
145145
let ref = useRef<SVGElement>(null);
146146
let ctx;
147147
[ctx, ref] = useSpectrumContextProps({slot: props.slot || 'icon'} as IconContextValue, ref, IllustrationContext);
148-
let {styles: ctxStyles} = ctx;
148+
let {render, styles: ctxStyles} = ctx;
149149
let {
150150
UNSAFE_className,
151151
UNSAFE_style,
@@ -154,9 +154,6 @@ export function createIllustration(Component: ComponentType<SVGProps<SVGSVGEleme
154154
'aria-hidden': ariaHidden,
155155
size = ctx.size || 'M',
156156
styles,
157-
// props are already merged with context via rac's useContextProps in generateS2IconIndex
158-
// @ts-ignore
159-
render,
160157
...otherProps
161158
} = props;
162159

0 commit comments

Comments
 (0)