Skip to content

Commit da44366

Browse files
committed
Place card surface color behind feature flag
REDMINE-21001
1 parent 1616a28 commit da44366

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

entry_types/scrolled/package/src/editor/views/EditSectionView.js

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -152,14 +152,16 @@ export const EditSectionView = EditConfigurationView.extend({
152152
(!exposeMotifArea || motifAreaDisabled(motifAreaDisabledBindingValues)) && backdropType !== 'contentElement'
153153
});
154154

155-
this.input('cardSurfaceColor', ColorInputView, {
156-
visibleBinding: 'appearance',
157-
visibleBindingValue: 'cards',
158-
placeholder: I18n.t('pageflow_scrolled.editor.edit_section.attributes.cardSurfaceColor.auto'),
159-
placeholderColorBinding: 'invert',
160-
placeholderColor: invert => invert ? '#101010' : '#ffffff',
161-
swatches: entry.getUsedSectionBackgroundColors()
162-
});
155+
if (features.isEnabled('custom_palette_colors')) {
156+
this.input('cardSurfaceColor', ColorInputView, {
157+
visibleBinding: 'appearance',
158+
visibleBindingValue: 'cards',
159+
placeholder: I18n.t('pageflow_scrolled.editor.edit_section.attributes.cardSurfaceColor.auto'),
160+
placeholderColorBinding: 'invert',
161+
placeholderColor: invert => invert ? '#101010' : '#ffffff',
162+
swatches: entry.getUsedSectionBackgroundColors()
163+
});
164+
}
163165

164166
this.view(SeparatorView);
165167

0 commit comments

Comments
 (0)