Skip to content

Commit c724be2

Browse files
committed
Merge branch 'develop' into feat/global-color-schemes
2 parents f39ee85 + 6ebc460 commit c724be2

File tree

8 files changed

+20
-9
lines changed

8 files changed

+20
-9
lines changed

src/plugins/global-settings/block-defaults/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,4 @@ addFilter( 'stackable.global-settings.inspector', 'stackable/default-blocks', ou
101101
</PanelAdvancedSettings>
102102
</>
103103
)
104-
} )
104+
}, 80 )

src/plugins/global-settings/buttons-and-icons/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ addFilter( 'stackable.global-settings.inspector', 'stackable/global-buttons-and-
368368
</PanelAdvancedSettings>
369369
</>
370370
)
371-
} )
371+
}, 10 )
372372

373373
export const GlobalButtonsAndIconsStyles = () => {
374374
const styles = useBlockLayoutEditorLoader( 'stackable/global-buttons-and-icons' )

src/plugins/global-settings/color-schemes/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ addFilter( 'stackable.global-settings.inspector', 'stackable/global-color-scheme
5353
</PanelAdvancedSettings>
5454
</Fragment>
5555
)
56-
} )
56+
}, 2 )
5757

5858
addFilter( 'stackable.global-settings.inspector.global-colors.toggle-controls', 'stackable/global-color-schemes', output => {
5959
const { hideColorSchemeColors } = useSelect( select => select( 'stackable/global-color-schemes' ).getSettings() )

src/plugins/global-settings/colors/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ addFilter( 'stackable.global-settings.inspector', 'stackable/global-colors', out
107107
return (
108108
<Fragment>
109109
{ output }
110-
<PanelAdvancedSettings title={ __( 'Global Color Palette', i18n ) }>
110+
<PanelAdvancedSettings
111+
title={ __( 'Global Color Palette', i18n ) }
112+
>
111113
<p className="components-base-control__help">
112114
{ __( 'Change your color palette for all your blocks across your site.', i18n ) }
113115
&nbsp;
@@ -139,7 +141,7 @@ addFilter( 'stackable.global-settings.inspector', 'stackable/global-colors', out
139141
</PanelAdvancedSettings>
140142
</Fragment>
141143
)
142-
} )
144+
}, 4 )
143145

144146
// Convert hex colors to global colors in Stackable blocks.
145147
addFilter( 'stackable.color-palette-control.change', 'stackable/global-colors', ( value, colorObject ) => {

src/plugins/global-settings/icon-library.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ if ( showProNotice || isPro ) {
3232
</PanelAdvancedSettings>
3333
</Fragment>
3434
)
35-
} )
35+
}, 12 )
3636
}

src/plugins/global-settings/index.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import { registerPlugin } from '@wordpress/plugins'
2424
import { __ } from '@wordpress/i18n'
2525
import { applyFilters, addAction } from '@wordpress/hooks'
2626
import { dispatch, select } from '@wordpress/data'
27+
import { PanelBody } from '@wordpress/components'
2728

2829
// Action used to toggle the global settings panel.
2930
addAction( 'stackable.global-settings.toggle-sidebar', 'toggle', () => {
@@ -49,7 +50,15 @@ const GlobalSettings = () => {
4950
name="sidebar"
5051
title={ __( 'Stackable Settings', i18n ) }
5152
className="ugb-global-settings__inspector"
52-
icon={ <SVGStackableIcon /> } >
53+
icon={ <SVGStackableIcon /> }
54+
>
55+
<PanelBody>
56+
<p>
57+
{ __( 'Set global styles and settings for your Stackable blocks to create a consistent design across your site. All the settings below will apply globally.', i18n ) }
58+
{ /* &nbsp;
59+
<a href="https://docs.wpstackable.com/article/465-how-to-style-the-different-block-hover-states?utm_source=wp-settings-global-settings&utm_campaign=learnmore&utm_medium=wp-dashboard" target="_docs">{ __( 'Learn more', i18n ) }</a> */ }
60+
</p>
61+
</PanelBody>
5362
{ applyFilters( 'stackable.global-settings.inspector', null ) }
5463
</PluginSidebar>
5564
}

src/plugins/global-settings/spacing-and-borders/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ addFilter( 'stackable.global-settings.inspector', 'stackable/global-spacing-and-
397397
</PanelAdvancedSettings>
398398
</>
399399
)
400-
} )
400+
}, 8 )
401401

402402
export const GlobalSpacingAndBordersStyles = () => {
403403
const styles = useBlockLayoutEditorLoader( 'stackable/global-spacing-and-borders' )

src/plugins/global-settings/typography/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,4 +401,4 @@ addFilter( 'stackable.global-settings.inspector', 'stackable/global-typography',
401401
</PanelAdvancedSettings>
402402
</Fragment>
403403
)
404-
} )
404+
}, 4 )

0 commit comments

Comments
 (0)