Generic selectors

Exact matches only

Search in title

Search in content

Post Type Selectors

Password

A password component in UX facilitates the creation and input of secure passwords.

Password
  • Overview
  • Specs
  • Guidelines

Component

A Password component, in UX, serves as a crucial interface element designed to streamline the process of creating and inputting secure passwords.

One of the key features of a Password component is the inclusion of Password strength indicators, which offer visual cues to users regarding the robustness of their chosen passwords. These indicators typically assess factors such as length, complexity, and the presence of special characters.

Additionally, Password components often incorporate visibility toggles, giving users the option of revealing or hiding their password entries as they type.

Password Anatomy
Password anatomy

1: Label

2: Placeholder/Input

3: Visibility Toggle

4: Strength Checker

5: Password Requirements

Password_Cegid_Id
Password applied in Cegid Id

Used for:

Security enhancement

Implementing a Password component ensures that users create strong and secure passwords, reducing the risk of unauthorized access and data breaches;

Usability improvement

By providing features such as Password strength indicators and error feedback, a Password component helps users create passwords that meet security requirements;

User confidence

Offering users a robust Password creation and input mechanism instills confidence in the security measures of the application, enhancing trust and user satisfaction;

Data protection

Strong passwords generated through a Password component contribute to the protection of sensitive user data, safeguarding it against unauthorized access.

Don’t use for:

Alternative authentication methods

If the application offers alternative authentication methods such as biometric authentication or two-factor authentication (2FA);

Common fields

For common fields, such as text-fields, using the Password component may not be the most appropriate;

Resistance to change

Users may resist the introduction of a Password component if they are used to the existing authentication methods or if the implementation disrupts their established workflows.

PasswordAccounts_FA
Passwords accounts for company configurations

Demo

Access the Figma file and inspect the element using Dev Mode.

demoPassword
Password at Figma

Last Update

Before
Old version of the Password
Current
Current version of the Password
  • Updated label color;
  • Updated password requirement presentation;

Related

Label

A Label serves as a crucial element for enhancing the clarity and usability of a digital interface …

Company Configuration

The company configuration pattern in accounting software streamlines setup by managing company details and preferences …

States

Password
Enabled
.enabled {
  label: var(--grey-8);
  password-border: var(--grey-5);
  password-background: var(--grey-1);
  icon: var(--grey-6);
  placeholder: var(--grey-7);
}
Hover
.hover {
  label: var(--grey-8);
  password-border: var(--grey-6);
  password-background: var(--grey-1);
  icon: var(--grey-6);
  placeholder: var(--grey-7);
}
Focus
.focus {
  label: var(--grey-8);
  password-border: var(--theme-100);
  password-background: var(--grey-1);
  icon: var(--grey-6);
  insert: var(--grey-9);
}
Read-only
.readOnly {
  label: var(--grey-8);
  password-border: var(--grey-1);
  password-background: var(--grey-3);
  icon: var(--grey-6);
  input: var(--grey-8);
}
Disabled
.disabled {
  label: var(--grey-8);
  password-border: var(--grey-4);
  password-background: var(--grey-2);
  icon: var(--grey-6);
  placeholder: var(--grey-6);
}
Error
.error {
  label: var(--grey-8);
  password-border: var(--error-100);
  password-background: var(--grey-1);
  icon: var(--grey-6);
  placeholder: var(--grey-7);
}

Size

Small
.small {
  label: var(--label-small);
  input-height: 28px;
  input-border: var(--x-small-radius);
  input-gap: 4px;
  input-padding: var(0, --spacing-8);
  icon: 16px;
  placeholder: var(--label-small);
}
Regular
.regular {
  label: var(--label-regular);
  input-height: 36px;
  input-border: var(--x-small-radius);
  input-gap: 8px;
  input-padding: var(0, --spacing-8);
  icon: 20px;
  placeholder: var(--label-regular);
}
Large
.large {
  label: var(--label-large);
  input-height: 40px;
  input-border: var(--x-small-radius);
  input-gap: 8px;
  input-padding: var(0, --spacing-8);
  icon: 24px;
  placeholder: var(--label-large);
}

Useful links

guidelines figma accent icon

Consult our Figma file to access our assets and inspect them in dev mode.

polygon-framework

This component is or will be provided by the Polygon framework. See its documentation to learn more.

This element is in line with the guidelines of the CDS (Cegid Design System). Find out more.

Behavior

Position

Input-type components must always be placed on grey-1 backgrounds (white) for optimal usability.

Avoid using them on grey-3 backgrounds (grey), as this can compromise the visibility of disabled and read-only states.

If placement on grey-3 backgrounds is necessary, ensure that disabled or read-only states are not utilized in these scenarios.

Text-field hover grey-3 background

Avoid placing input-type components on grey-3 backgrounds to maintain optimal visibility and accessibility.

Text field hover grey-1

Input-type components should be placed over grey-1 backgrounds for optimal visibility and usability.

Use the component without an icon and/or label.

Show/Hide

In all variations, it is possible to show/hide the Password by clicking on the icon.

By default and for security purposes, the Password is always hidden.

Show/Hide

Strength

In the strength variation, as you enter characters, the input validates the security level of the password according to your requirements:

  • Weak: one requirement;
  • Medium: two requirements;
  • Good: all requirements;
  • Great: all requirements and one of them is repeated (two numbers, for example).
Password Strength Checker
Password Strength Checker
Caution

Information on Password requirements must always be visible in the strength variation.


Case Studies

Why Web Accessibility Matters - And How to Start

Why Web Accessibility Matters – And How to Start

Web accessibility is about designing inclusive digital experiences that benefit everyone, guided by four key principles and driven by the …
Writing for Everyone

Writing for Everyone: Every Word Counts in Accessibility

Writing for everyone is an essential part of any digital product. It can and does make a big difference to …

Release v1.4

Overview Compose Design has recently undergone some important updates, which means it’s time for another release note. In addition to …

Outline