Skip to content

Commit 1c4ae67

Browse files
committed
Update use-global-styles-output.js
1 parent 8b15756 commit 1c4ae67

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)