Skip to content

Commit

Permalink
Address woo passwordless UI feedback (#89233)
Browse files Browse the repository at this point in the history
* Update headerText in Login component for wccom passwordless login

* Align the social buttons text to the center.
  • Loading branch information
chihsuan authored Apr 9, 2024
1 parent ed7e979 commit 373d1d6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions client/blocks/authentication/social/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
}
}

.is-woo-passwordless .auth-form__social,
.auth-form__social.is-social-first {
.auth-form__social-buttons-container {
gap: 16px;
Expand Down
8 changes: 7 additions & 1 deletion client/blocks/login/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,13 @@ class Login extends Component {
</p>
);
} else if ( this.showContinueAsUser() && this.props.isWooPasswordless ) {
headerText = <h3>{ translate( 'Get started in minutes' ) }</h3>;
headerText = (
<h3>
{ wccomFrom === 'nux'
? translate( 'Get started in minutes' )
: translate( 'Log in to your account' ) }
</h3>
);
postHeader = (
<p className="login__header-subtitle">
{ translate( 'First, select the account you’d like to use.' ) }
Expand Down
8 changes: 1 addition & 7 deletions client/layout/masterbar/woo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1399,21 +1399,16 @@ $breakpoint-mobile: 660px;
height: 48px;
padding: 8px 16px;
align-items: center;
gap: 60px;
align-self: stretch;
border-radius: 8px; // stylelint-disable-line scales/radii
border: 2px solid var(--studio-gray-10);
border: 2px solid var(--studio-gray-10) !important;
width: 100%;
margin: 0;
text-decoration: none;

&:hover {
background: var(--studio-gray-0, #f6f7f7);
}

svg {
margin: 0;
}
}

.social-buttons__service-name {
Expand All @@ -1422,7 +1417,6 @@ $breakpoint-mobile: 660px;
font-weight: 500;
line-height: 24px;
color: var(--studio-gray-100);
margin: 0;
}

.social-icons {
Expand Down

0 comments on commit 373d1d6

Please sign in to comment.