Skip to content

LG-7947: Remove "top" position option for password toggle#7285

Merged
aduth merged 5 commits intomainfrom
aduth-lg-7947-pw-toggle
Nov 8, 2022
Merged

LG-7947: Remove "top" position option for password toggle#7285
aduth merged 5 commits intomainfrom
aduth-lg-7947-pw-toggle

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented Nov 3, 2022

🎫 Ticket

LG-7947

🛠 Summary of changes

Revises all password toggles to display the toggle input below the password field, in order to correct tab order behavior such that the visual placement and tab order of the toggle always occurs after the password field.

Related Slack discussions:

👀 Screenshots

Screen Before After
Sign in 7947-sign-in-1 7947-sign-in-2
Sign up password 7947-sign-up-pw-1 7947-sign-up-2
Edit password 7947-edit-pw-1 7947-edit-2
Reauthn 7947-reauthn-1 7947-reauthn-2
Delete account 7947-delete-1 7947-delete-2
IdV SSN 7947-ssn-1 7947-ssn-2
IdV password re-entry 7947-verify-review-1 7947-verify-2
IdV account reactivation 7947-reactive-1 7947-reactivate-2

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Previously this component would forward all additional initializer attributes to the ValidatedFieldComponent. This made it easier to apply options to the field as an optimized use-case (contrast with new field_options), but (a) was inconsistent with other components which would apply additional attributes to the root element and (b) made it difficult or impossible to assign additional attributes to the root element (e.g. extra CSS classes).

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

@aduth aduth force-pushed the aduth-lg-7947-pw-toggle branch from 4cd0b9f to 531590c Compare November 4, 2022 17:57
@aduth aduth marked this pull request as ready for review November 7, 2022 13:45
@aduth aduth force-pushed the aduth-lg-7947-pw-toggle branch from 72e0fb4 to 9081a62 Compare November 8, 2022 14:00
@aduth aduth merged commit 9e0a099 into main Nov 8, 2022
@aduth aduth deleted the aduth-lg-7947-pw-toggle branch November 8, 2022 19:30
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.

4 participants