Skip to content

Commit

Permalink
Make buttons more consisten.
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenDufresne committed Jul 8, 2024
1 parent 86756df commit c91deb1
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 12 deletions.
1 change: 0 additions & 1 deletion settings/src/components/password.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ export default function Password() {
label="New Password"
size="62"
value={ editedRecord.password ?? '' }
placeholder="Enter New Password..."
onChange={ handlePasswordChange }
/>
<Button
Expand Down
2 changes: 1 addition & 1 deletion settings/src/components/totp.js
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ function ConfirmDisableApp( { onConfirm, onClose, disabling } ) {
) : (
<div className="wporg-2fa__submit-actions">
<Button variant="primary" isDestructive onClick={ onConfirm }>
Disable
Disable Two-Factor app
</Button>

<Button variant="tertiary" onClick={ onClose }>
Expand Down
4 changes: 2 additions & 2 deletions settings/src/components/webauthn/list-keys.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,10 @@ function ConfirmRemoveKey( { keyToRemove, onConfirm, onClose, deleting, error }
) : (
<div className="wporg-2fa__submit-actions">
<Button variant="primary" isDestructive onClick={ onConfirm }>
Delete
Delete key
</Button>

<Button variant="tertiary" onClick={ onClose }>
<Button variant="secondary" onClick={ onClose }>
Cancel
</Button>
</div>
Expand Down
6 changes: 3 additions & 3 deletions settings/src/components/webauthn/webauthn.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export default function WebAuthn() {

{ keys.length > 0 && (
<Button
variant="tertiary"
variant="secondary"
onClick={
webAuthnEnabled ? showConfirmDisableModal : toggleProvider
}
Expand Down Expand Up @@ -191,10 +191,10 @@ function ConfirmDisableKeys( { onConfirm, onClose, disabling } ) {
) : (
<div className="wporg-2fa__submit-actions">
<Button variant="primary" isDestructive onClick={ onConfirm }>
Disable
Disable security keys
</Button>

<Button variant="tertiary" onClick={ onClose }>
<Button variant="secondary" onClick={ onClose }>
Cancel
</Button>
</div>
Expand Down
7 changes: 2 additions & 5 deletions settings/src/components/webauthn/webauthn.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
.bbp-single-user .wporg-2fa__webauthn {
.wporg-2fa__webauthn-keys-header {
margin-bottom: 0;
font-weight: 600;
}

.wporg-2fa__webauthn-keys-list {
li {
display: flex;
padding: 20px 0;
padding: 16px 0;
border-bottom: 1px solid $gray-300;

&:last-of-type {
Expand All @@ -20,10 +21,6 @@
font-size: 13px;
}
}

.wporg-2fa__webauthn-register {
min-height: 300px;
}
}

.components-modal__frame.wporg-2fa__confirm-delete-key {
Expand Down

0 comments on commit c91deb1

Please sign in to comment.