Skip to content

Commit 67488d6

Browse files
author
Nagesh Pai
committed
Add fallback colors to overlay
1 parent ea7b1d1 commit 67488d6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/infotip/inline-ui.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,11 @@ function OverlayTabContent( {
156156
label: __( 'Background', 'blablablocks-formats' ),
157157
value:
158158
activeAttributes[ 'overlay-background-color' ] ||
159-
'#222',
159+
'#222222',
160160
onChange: ( newValue ) => {
161161
updateAttributes( {
162-
'overlay-background-color': newValue,
162+
'overlay-background-color':
163+
newValue || '#222222',
163164
} );
164165
},
165166
},
@@ -170,7 +171,7 @@ function OverlayTabContent( {
170171
'#FFFFFF',
171172
onChange: ( newValue ) => {
172173
updateAttributes( {
173-
'overlay-text-color': newValue,
174+
'overlay-text-color': newValue || '#FFFFFF',
174175
} );
175176
},
176177
},

0 commit comments

Comments
 (0)