@@ -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