Skip to content

Commit 9d4071c

Browse files
committed
fix error
- settings not showing up
1 parent 3e724f9 commit 9d4071c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/components/style-guide/components.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,6 @@ export const BlockStyles = ( { allBlockStyles, className } ) => {
249249
return ( <Fragment key={ index }>
250250
<h2 className="ugb-style-guide__section-subheading ugb-style-guide__title">{ blockTitle }</h2>
251251
<div className={ `ugb-style-guide__elements ugb-style-guide__preview-root ${ className }` }>
252-
<h2 className="ugb-style-guide__section-subheading ugb-style-guide__title">{ blockName }</h2>
253252
{ /* Render Default Block Style */ }
254253
<RenderBlock key={ 0 } blockName={ blockName } />
255254
{ blockStyles.map( ( blockStyle, styleIndex ) => (

src/components/style-guide/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ import { __ } from '@wordpress/i18n'
1818

1919
export { default as StyleGuidePopover } from './popover'
2020

21-
const THEME_STYLES = wpGlobalStylesInlineCss.replaceAll( ':root', '&' ).replace( /[^\-](\bbody)/g, ( match, p1 ) => {
22-
return match.replace( p1, '.ugb-style-guide__preview-root' )
23-
} )
24-
2521
// TODO: This is not yet finished
2622
const StyleGuide = props => {
2723
const { designSystem, contentRef = null } = props
@@ -37,6 +33,10 @@ const StyleGuide = props => {
3733
previewClassNames = '',
3834
} = designSystem
3935

36+
const THEME_STYLES = wpGlobalStylesInlineCss.replaceAll( ':root', '&' ).replace( /[^\-](\bbody)/g, ( match, p1 ) => {
37+
return match.replace( p1, '.ugb-style-guide__preview-root' )
38+
} )
39+
4040
return (
4141
<>
4242
<div className="ugb-style-guide">

0 commit comments

Comments
 (0)