File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
packages/components/src/components/decorations Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @theguild/components " : patch
3+ ---
4+
5+ Keep firefox highlight fix className on the HighlightDecoration (v9)
Original file line number Diff line number Diff line change 11import { cn } from '../../cn' ;
2+ import { ReactComponent as HighlightDecorationSvg } from './highlight-decoration.svg' ;
23
34export { ReactComponent as ArchDecoration } from './arch-decoration.svg' ;
45export { ReactComponent as ArchDecorationGradientDefs } from './arch-decoration-gradient-defs.svg' ;
5- export { ReactComponent as HighlightDecoration } from './highlight-decoration.svg' ;
66export { ReactComponent as LargeHiveIconDecoration } from './large-hive-icon-decoration.svg' ;
77
88export type DecorationIsolationProps = React . HTMLAttributes < HTMLDivElement > ;
@@ -18,3 +18,9 @@ export function DecorationIsolation(props: DecorationIsolationProps) {
1818 />
1919 ) ;
2020}
21+
22+ // Components created from .svg import don't preserve className
23+ export const HighlightDecoration = ( props : React . SVGProps < SVGSVGElement > ) => (
24+ // eslint-disable-next-line tailwindcss/no-custom-classname
25+ < HighlightDecorationSvg { ...props } className = { cn ( props . className , 'firefox-highlight-fix' ) } />
26+ ) ;
You can’t perform that action at this time.
0 commit comments