-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LG-4135 | LG-4151: [CCP] PasswordInput updates (#2310)
* [CCP] PasswordInput changes * PasswordInput changeset * Refactor * Add types tests * Add to README
- Loading branch information
Showing
21 changed files
with
379 additions
and
362 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
'@leafygreen-ui/password-input': major | ||
--- | ||
|
||
[LG-4135](https://jira.mongodb.org/browse/LG-4135) | ||
|
||
1. Updated styling: | ||
- updated spacing for `'small'` and `'large'` size variants | ||
- added `'xsmall'` variant | ||
- updated placeholder text color | ||
- removed validation icon from inside the input | ||
|
||
2. Added `errorMessage` and `successMessage` props | ||
- `errorMessage` will render a default of `'This input needs your attention'` and can be customized | ||
- `errorMessage` will only render when `state` is `warning` or `error` | ||
- `successMessage` will render a default of `'Success'` and can be customized | ||
- `successMessage` will only render when `state` is `valid` | ||
- both will only render if `aria-describedby` is undefined and `stateNotifications` is not an array |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.