Skip to content

Commit

Permalink
ButtonGroup: Use <link /> for the stylesheet
Browse files Browse the repository at this point in the history
  • Loading branch information
tyxla committed Nov 6, 2024
1 parent b7b8f14 commit f28bcea
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion packages/components/src/button-group/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,19 @@ function UnforwardedButtonGroup(
const classes = clsx( 'components-button-group', className );

return (
<div ref={ ref } role="group" className={ classes } { ...restProps } />
<>
<link
rel="stylesheet"
data-precedence="low"
href="../wp-content/plugins/gutenberg/packages/components/src/button-group/style.css"
/>
<div
ref={ ref }
role="group"
className={ classes }
{ ...restProps }
/>
</>
);
}

Expand Down

0 comments on commit f28bcea

Please sign in to comment.