💄 Improve visual hint for settings-reset toggle

This commit is contained in:
Philipp Stracker 2025-02-13 15:08:50 +01:00
parent 769234ca15
commit f7b2f97b89
No known key found for this signature in database
2 changed files with 9 additions and 3 deletions

View file

@ -2,12 +2,18 @@
* Modal for disconnecting the merchant from the current PayPal account.
*/
.ppcp--modal-disconnect {
.ppcp--toggle-danger {
--wp-components-color-accent: #cc1818
.ppcp--toggle-danger .components-form-toggle {
&.is-checked {
--wp-components-color-accent: #cc1818;
}
}
.ppcp--action-buttons {
text-align: right;
margin-top: 32px;
.components-button {
transition: background 0.3s;
}
}
}

View file

@ -78,7 +78,7 @@ const DisconnectButton = () => {
</Button>
<Button
variant="primary"
isDestructive={ true }
isDestructive={ resetFlag }
onClick={ handleConfirm }
>
{ __(