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 1
1
import { cn } from '../../cn' ;
2
+ import { ReactComponent as HighlightDecorationSvg } from './highlight-decoration.svg' ;
2
3
3
4
export { ReactComponent as ArchDecoration } from './arch-decoration.svg' ;
4
5
export { ReactComponent as ArchDecorationGradientDefs } from './arch-decoration-gradient-defs.svg' ;
5
- export { ReactComponent as HighlightDecoration } from './highlight-decoration.svg' ;
6
6
export { ReactComponent as LargeHiveIconDecoration } from './large-hive-icon-decoration.svg' ;
7
7
8
8
export type DecorationIsolationProps = React . HTMLAttributes < HTMLDivElement > ;
@@ -18,3 +18,9 @@ export function DecorationIsolation(props: DecorationIsolationProps) {
18
18
/>
19
19
) ;
20
20
}
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