Skip to content

Commit

Permalink
Payment methods: fix alignment of 'Use as backup' text (#93757)
Browse files Browse the repository at this point in the history
* Ensure that items in the right hand column of the grid align to the right.
Swap out delete text for trash icon on narrow viewport widths.

Revert changes from #93798

* Revert icon
Restore left padding for backup label
  • Loading branch information
ramonjd authored Sep 11, 2024
1 parent bb0eafd commit e825283
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions client/me/purchases/payment-methods/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,14 @@

@include breakpoint-deprecated( ">480px" ) {
margin-top: 0;
justify-self: flex-end;
}
}

.payment-method-delete__button {
text-decoration: underline;
padding: 0;
text-align: right;
}

.payment-method-delete-dialog {
Expand All @@ -143,19 +145,11 @@
margin-top: 16px;
width: 100%;

& .components-checkbox-control [data-wp-component="HStack"] {
justify-content: start;
}

@include breakpoint-deprecated( ">480px" ) {
margin-left: 0;
margin-top: 0;
text-align: right;
width: auto;

& .components-checkbox-control [data-wp-component="HStack"] {
justify-content: end;
}
justify-self: flex-end;
}
}

Expand Down

0 comments on commit e825283

Please sign in to comment.