Skip to content

Commit

Permalink
Fix premium content button CSS in editor and display (#40638)
Browse files Browse the repository at this point in the history
* Fix Premium Content button CSS

* changelog

* Use CSS variables

* Use CSS variables

* Import base styles

---------

Co-authored-by: MILLER/F <[email protected]>
  • Loading branch information
chrisfromthelc and millerf authored Dec 17, 2024
1 parent 3815cf5 commit be37dc6
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: other

Fixes editor and display CSS for Premium Content buttons.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,20 @@
margin: 0;
}

%button-outline-style {
background-color: unset;
color: $gray-800;
}

.wp-block-premium-content-login-button,
.wp-block-jetpack-button {
&.is-style-outline {
.wp-block-button__link {
@extend %button-outline-style;
}
}
}

/* Hide Stripe nudge from Jetpack payments block */
/* https://github.com/Automattic/wp-calypso/issues/44332 */
.wp-block-premium-content-container .premium-content-wrapper .jetpack-block-nudge {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import '@automattic/jetpack-base-styles/gutenberg-base-styles';

/**
* The following styles get applied both on the front of your site
* and in the editor.
Expand Down Expand Up @@ -26,6 +28,20 @@
float: right;
}

%button-outline-style {
background-color: unset;
color: $gray-800;
}

.wp-block-premium-content-login-button,
.wp-block-jetpack-button {
&.is-style-outline {
.wp-block-button__link {
@extend %button-outline-style;
}
}
}

/* Legacy Subscribe/Login buttons */

.wp-block-premium-content-logged-out-view__buttons {
Expand Down

0 comments on commit be37dc6

Please sign in to comment.