Skip to content

Commit

Permalink
Fix delete domain dialog width and CTA (#96981)
Browse files Browse the repository at this point in the history
* Reduce delete domain dialog width

* Fix mobile view and fix primary button text on mobile
  • Loading branch information
wojtekn authored Dec 3, 2024
1 parent 7337b48 commit e18c37a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ class RemoveDomainDialog extends Component {
return (
<Dialog
buttons={ buttons }
className="remove-domain-dialog__dialog"
additionalClassNames="remove-domain-dialog"
isVisible={ this.props.isDialogVisible }
onClose={ this.close }
leaveTimeout={ 0 }
Expand Down
13 changes: 13 additions & 0 deletions client/me/purchases/remove-purchase/style.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
@import "@wordpress/base-styles/breakpoints";
@import "@wordpress/base-styles/mixins";

.remove-purchase__card,
.auto-renew-toggle__card {
margin: 10px auto;
Expand All @@ -17,10 +20,20 @@
vertical-align: middle;
}
}
.remove-domain-dialog {
&.dialog.card {
max-width: 90%;

@include break-small {
max-width: 565px;
}
}
}
.dialog__button--domains-remove {
> .dialog__button-label {
display: flex;
align-items: center;
justify-content: center;
column-gap: 7px;

> svg {
Expand Down

0 comments on commit e18c37a

Please sign in to comment.