Skip to content

Commit b76f874

Browse files
fix (color schemes): added back missing pro notice
1 parent 669a0ef commit b76f874

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

src/components/pro-control-button/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const ProControlButton = props => {
2424
} )
2525

2626
return (
27-
<div className="components-base-control">
27+
<div className="components-base-control ugb-pro-control-button">
2828
<button className="ugb-pro-control-more-dots" onClick={ () => setIsOpen( v => ! v ) }>
2929
<div className="ugb-pro-control-more-dots__dot stk-pulsating-circle"></div>
3030
<div className="ugb-pro-control-more-dots__dot stk-pulsating-circle"></div>

src/plugins/global-settings/color-schemes/editor.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
}
77
}
88

9+
.ugb-global-settings-color-picker + .ugb-pro-control-button {
10+
margin-bottom: 16px;
11+
}
12+
913
.stk-global-color-scheme__color-scheme-item.block-editor-panel-color-gradient-settings__dropdown {
1014
height: max-content;
1115
padding: 0 8px 0 0;

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ import ColorSchemePicker from './color-scheme-picker'
88
/**
99
* External dependencies
1010
*/
11-
import { i18n } from 'stackable'
11+
import { i18n, showProNotice } from 'stackable'
1212
import {
1313
PanelAdvancedSettings, HelpTooltip,
1414
AdvancedSelectControl, SectionSettings,
15+
ProControlButton,
1516
} from '~stackable/components'
1617
import { useBlockColorSchemes } from '~stackable/hooks'
1718

@@ -96,6 +97,7 @@ addFilter( 'stackable.global-settings.inspector', 'stackable/global-color-scheme
9697
setItemInEdit={ setItemInEdit }
9798
setDisplayHoverNotice={ setDisplayHoverNotice }
9899
/>
100+
{ ! itemInEdit && showProNotice && <ProControlButton type="color-schemes" /> }
99101
{ ! itemInEdit && <>
100102
<SectionSettings title={ __( 'Default Block Colors', i18n ) }>
101103
<AdvancedSelectControl

0 commit comments

Comments
 (0)