Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Fix express button display in the Cart block (#10534)
Browse files Browse the repository at this point in the history
* Fix express button display in the Cart block

When multiple buttons are displayed they don't appear stacked. This PR fixes a regression;

* Fix editor experience
  • Loading branch information
ralucaStan authored Aug 14, 2023
1 parent d21ff66 commit 4dd92c3
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,13 @@ $border-radius: 5px;
margin: auto;
position: relative;

// nested class to avoid conflict with .editor-styles-wrapper ul
.wc-block-components-express-payment__event-buttons {
list-style: none;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(calc(33% - 10px), 1fr));
grid-gap: 10px;
box-sizing: border-box;
width: 100%;
padding: 0;
margin: 0;
overflow: hidden;
text-align: center;

> li {
margin: 0;
width: 100%;
Expand All @@ -27,18 +22,23 @@ $border-radius: 5px;
}
}
}

@include breakpoint("<782px") {
.wc-block-components-express-payment__event-buttons {
grid-template-columns: 1fr;
}
}
}

.wc-block-components-express-payment--checkout {
/* stylelint-disable-next-line function-calc-no-unspaced-operator */
margin-top: calc($border-radius * 3);

.wc-block-components-express-payment__event-buttons {
list-style: none;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(calc(33% - 10px), 1fr));
grid-gap: 10px;

@include breakpoint("<782px") {
grid-template-columns: 1fr;
}
}

.wc-block-components-express-payment__title-container {
display: flex;
flex-direction: row;
Expand Down

0 comments on commit 4dd92c3

Please sign in to comment.