Open antonellasevero opened 5 years ago
We ought to move the "Recommendations to make your password stronger" above the fields to create a password to position those instructions in a more predictable and in turn helpful place. Assistive technologies for example read the page in a linear and sequential fashion and someone using a screen reader would get to the "recommendations" section only after they've filled out the password fields. Ideally they would need this information before filling out the password fields so that they don't have to go back and re-do their password.
The "Show password" button will not be implemented as an anchor tag (a Link) and therefore we shouldn't be using the Link styling for it. The "Show password" button will be implemented as a Button tag and we need to instead use one of the button styles conveyed in this ticket: https://github.com/jsdrupal/drupal-admin-ui/issues/658
Design link: https://www.figma.com/file/OqWgzAluHtsOd5uwm1lubFeH/Drupal-Design-system?node-id=5653%3A13262
MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/password
Technical details
packages/components/FormElements/InputPassword/InputPassword.js
packages/components/FormElements/InputPassword/InputPassword.stories.js
packages/components/src/index.js:6