-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add setupprogressback to totp and backup codes
- Loading branch information
Showing
5 changed files
with
54 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/** | ||
* WordPress dependencies | ||
*/ | ||
import { Icon, lock, reusableBlock } from '@wordpress/icons'; | ||
|
||
export default function SetupProgressBar( { step } ) { | ||
return ( | ||
<ul className="wporg-2fa__setup-steps"> | ||
<li className={ 'totp' === step ? 'is-enabled' : 'is-disabled' }> | ||
<Icon icon={ lock } /> | ||
Verify Codes | ||
</li> | ||
|
||
<li className={ 'backup-codes' === step ? 'is-enabled' : 'is-disabled' }> | ||
<Icon icon={ reusableBlock } /> | ||
Backup Codes | ||
</li> | ||
</ul> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// todo style this closer to the mockup | ||
.wporg-2fa__setup-steps { | ||
.is-enabled { | ||
font-weight: bold; | ||
color: blue; // todo use color var w/ correct color | ||
} | ||
|
||
.is-disabled { | ||
color: grey; // todo use color var w/ correct color | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters