Skip to content

Commit a7ec403

Browse files
authored
Merge pull request #670 from newfold-labs/fix/live-preview-override
Fix Live Preview Override
2 parents 01eefad + 1c4ae67 commit a7ec403

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/OnboardingSPA/utils/global-styles/use-global-styles-output.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1443,6 +1443,15 @@ export function generateStyles(
14431443
} );
14441444
}
14451445

1446+
// Add custom Button CSS
1447+
if ( undefined === updatedConfig.styles.css ) {
1448+
updatedConfig.styles.css =
1449+
'.wp-block-button.is-style-outline .wp-block-button__link:not(.has-background) { background: transparent none !important; }';
1450+
} else {
1451+
updatedConfig.styles.css +=
1452+
'.wp-block-button.is-style-outline .wp-block-button__link:not(.has-background) { background: transparent none !important; }';
1453+
}
1454+
14461455
// Construct the styles array
14471456
const styles = [
14481457
...result,

0 commit comments

Comments
 (0)