Skip to content

Commit

Permalink
Move backup code actions directly below codes (#295)
Browse files Browse the repository at this point in the history
Fixes #294
  • Loading branch information
adamwoodnz authored Aug 14, 2024
1 parent fe04b98 commit 4a154cc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
12 changes: 6 additions & 6 deletions settings/src/components/backup-codes.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@ function Setup( { setRegenerating } ) {
<>
<CodeList codes={ backupCodes } />

<ButtonGroup>
<CopyToClipboardButton codes={ backupCodes } />
<PrintButton />
<DownloadButton codes={ backupCodes } />
</ButtonGroup>

<Notice status="warning" isDismissible={ false }>
<Icon icon={ warning } className="wporg-2fa__print-codes-warning" />
Without access to the one-time password app or a backup code, you will lose
Expand All @@ -159,12 +165,6 @@ function Setup( { setRegenerating } ) {
>
All Finished
</Button>

<ButtonGroup>
<CopyToClipboardButton codes={ backupCodes } />
<PrintButton />
<DownloadButton codes={ backupCodes } />
</ButtonGroup>
</Flex>
</>
);
Expand Down
9 changes: 4 additions & 5 deletions settings/src/components/backup-codes.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
.wporg-2fa__backup-codes {
> * {
margin-bottom: 1em;
}

.wporg-2fa__backup-codes-list {
background-color: $gray-300;
margin: 1em 0;
padding: 15px 20px;

ol {
Expand All @@ -18,10 +21,6 @@
color: $gray-700;
}
}

.components-notice {
margin: 0 0 1em;
}
}

#bbpress-forums .wporg-2fa__backup-codes {
Expand Down

0 comments on commit 4a154cc

Please sign in to comment.