Closed StevenDufresne closed 3 months ago
Using the tab key I can still navigate around behind the wizard. Probably need to trap the tab navigation within.
Generally we use sentence case for titles, and I can see a lot of title case. The bit that sticks out for me is the title below the logo.
Overall I think this could do with some design input; as well as the copy the progress bar details could be refined a little (line thickness, icons).
These back arrows are still using the old blue
Generally we use sentence case for titles, and I can see a lot of title case. The bit that sticks out for me is the title below the logo.
I've lowercased that option titles. The main titles are existing and enforced using CSS. I think we can address that later if needed.
These back arrows are still using the old blue
I've updated this here: https://github.com/WordPress/wporg-two-factor/commit/06f3e14dd2db2f51dd0cc724788f62ec5b5fb82e
Backup codes print view could do with some elements being hidden
This might be an existing issue but the back button and title don't fit
And the security key screen is collapsing
The outline focus style on these radio elements should be removed imo. The focus ring around the whole option and color change on the input should be enough.
Nice, looks good! Appreciate you using the new typography, colors, and componentry to build this out.
Overall, I wouldn't block this on any one particular piece, but a few things could be refined a bit. In no particular order:
We should establish and adhere to a UI text-case guide. I think one exists, but the link to it escapes me. If I'm not wrong, it's sentence case with capitals for only proper nouns. In this case, it would be "Choose an authentication method", and probably "Configure two-factor", unless "two-factor" counts as a proper noun?
Are the icons scaled down? With few exceptions we should only use those icons in 24x24px. In this case you might also want to replace the icons with numbers, 1, 2, 3 instead, as the icons themselves are not perfect.
Can you apply a 1.5px stroke-width both for the horizontal bar, and for the inner stroke of the circle?
We can refine the Back button a bit: no underline, 24x24 small-chevron icon, same blueberry color. This is similar to what we did for older 2fa mockups.
Do we have yet a new notice component based on these designs from @fcoveram?
If not, I would simply make the text bold and not box it up in that yelllow notice piece. It's an old icon, and old colors, and there's a checkbox below to make sure you understand.
Can these buttons be right below the codes themseles?
Instead of "All Finished", should it be "Finish" or "Complete", or even "I understand"? Can it be a disabled solid button instead of a disabled outline button? I.e. this:
Can we omit "Setup Complete" here? Since there's no background, the centered heading becomes a bit off-balanced given there's also a heading right below.
I'd also tend to omit the emoji here. If we want something celebratory, we could potentially revisit the animation we explored for the past mockups:
Do we have yet a new notice component based on these designs from @fcoveram?
This plugin was built using wordpress/components
so we don't have access to wp.org's notices. We could manually restyle it.
I wonder if we can remove it in favor of hiding the "back" button when codes are generated that need saving and updating the copy to include some of this language?
Can it be a disabled solid button instead of a disabled outline button? I.e. this:
It can, but if we do, lets do that for all the other buttons as well. Can we open a new ticket for that?
Can we omit "Setup Complete" here? Since there's no background, the centered heading becomes a bit off-balanced given there's also a heading right below.
It's probably easier to remove in the header in the content than re-working the component title. Its probably not as important.
It can, but if we do, lets do that for all the other buttons as well. Can we open a new ticket for that?
Just to understand, the button component by default has an outline-look when disabled, regardless of its base variant? If yes, I'll open an issue, I'd expect primary buttons to remain primary-looking when disabled.
Just to understand, the button component by default has an outline-look when disabled, regardless of its base variant? If yes, I'll open an issue, I'd expect primary buttons to remain primary-looking when disabled.
We have a few use cases in different components where the button defaults to disabled, we'll want to keep those consistent whether the button is outlined or filled in.
Exactly, if it's filled, it should always be filled (and have a disabled state), etc. It sounds like that's the case here, so why's it outlined if it's primary when not-disabled? Forgive me if I still miss nuance.
Past experience tells me the best disabled state is just an opacity change (e.g. opacity: 0.3
), rather than a bespoke visual style.
Closing, we'll go with an inline version: https://github.com/WordPress/wporg-two-factor/pull/297
It's likely that we enforce 2fa for plugins/theme committers on wp.org. This PR adds a wizard that we can show to users on login that will immediately get them into the configuration flow.
Main changes
script.js
code intosettings.js
so we can choose different UIs.onSuccess
events to components to be used in the wizard.Screenshots
How to test
Without local modifications to the underlying WP 2fa plugins, you can't test this. This is best tested in a sandbox.
Note, if you use an existing account, the wizard will show the "configured states" which isn't expected for regular users.