Skip to content

Revert tab placement change for password toggle checkbox#6185

Merged
aduth merged 1 commit intomainfrom
aduth-revert-pw-toggle-tab
Apr 12, 2022
Merged

Revert tab placement change for password toggle checkbox#6185
aduth merged 1 commit intomainfrom
aduth-revert-pw-toggle-tab

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented Apr 12, 2022

Related: #6081

Why: Since it may have a negative impact on form usability, revert until we have a chance to think about this more holistically.

**Why**: Since it may have a negative impact on form usability, revert until we have a chance to think about this more holistically.

[skip changelog]
@aduth aduth force-pushed the aduth-revert-pw-toggle-tab branch from b6906a6 to 73d6239 Compare April 12, 2022 13:30
Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I was gonna ask if we can remove the toggle_position option entirely but it looks like we use it for CSS classes only still, we just don't need to rearrange the DOM for it

@aduth
Copy link
Contributor Author

aduth commented Apr 12, 2022

I was gonna ask if we can remove the toggle_position option entirely but it looks like we use it for CSS classes only still, we just don't need to rearrange the DOM for it

Yeah, we still have styles which are applied depending on position, so the option will need to stay.

&.password-toggle--toggle-top .password-toggle__toggle-label {
@include u-pin-right;
top: -24px;
}
&.password-toggle--toggle-bottom .validated-field__input-wrapper {
margin-bottom: units(2);
}

@aduth aduth merged commit 22c3d73 into main Apr 12, 2022
@aduth aduth deleted the aduth-revert-pw-toggle-tab branch April 12, 2022 15:15
zachmargolis pushed a commit that referenced this pull request Apr 12, 2022
**Why**: Since it may have a negative impact on form usability, revert until we have a chance to think about this more holistically.

[skip changelog]

(cherry picked from commit 22c3d73)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants