swisspost / design-system

The Swiss Post Design System pattern library for a consistent and accessible user experience across the web platform.
https://design-system.post.ch
Apache License 2.0
120 stars 14 forks source link

[component]: Password input #228

Open gfellerph opened 2 years ago

gfellerph commented 2 years ago

Create a password field component with show/hide password icon button.

Features:

Options:

Methods:

Tests:

Default:

<post-password>
  <label slot="label">Label</label>
  <input slot="input" type="password" />
  <span slot="button-text"></span>
</post-password>
gfellerph commented 7 months ago

Password fields in modal: https://www.figma.com/file/xZ0IW0MJO0vnFicmrHiKaY/Components-Post?type=design&node-id=20110-20763&mode=design&t=xSsfsncaG7Mwurm6-4

oliverschuerch commented 6 months ago

@Vandapanda Why is this in review? The provided link by @gfellerph is not showing a complete state of the password field to me.

Vandapanda commented 6 months ago

@oliverschuerch My fault, was told to build it in in the Input component, you can find the link here https://www.figma.com/file/xZ0IW0MJO0vnFicmrHiKaY/Components-Post?type=design&node-id=7775%3A33876&mode=design&t=g2Bs8idEX3FzJg3A-1

oliverschuerch commented 5 months ago

@Vandapanda There is at least one topic we need to discuss. I've added it to the pattern discussion.

gfellerph commented 5 days ago

Link to v2 password field (design required): https://www.figma.com/design/JIT5AdGYqv6bDRpfBPV8XR/Foundations-%26-Components-Next-Level?node-id=1457-15780&t=3PjTQpQCtzCqDafE-4