Skip to content

Commit 7fb9ea7

Browse files
chore(Password demos): moved to Patterns (#11539)
* chore(Password demos): moved to Patterns * Updated input type to password
1 parent 1779da2 commit 7fb9ea7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

packages/react-core/src/demos/PasswordGenerator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: Password generator
3-
section: components
3+
section: patterns
44
---
55

66
import RedoIcon from '@patternfly/react-icons/dist/esm/icons/redo-icon';

packages/react-core/src/demos/PasswordStrength.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: Password strength
3-
section: components
3+
section: patterns
44
---
55

66
import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon';
@@ -13,7 +13,7 @@ import formStyles from '@patternfly/react-styles/css/components/Form/form';
1313

1414
### Basic validation
1515

16-
Note, the validation and password strength rules are only examples, demonstrating the changes in the UI when certain conditions are met. We expect consumers will substitute their own, more robust, validation algorithm. In this demo the password strength is determined by how often validation rules are met. A good open-source password strength estimator, recommended by InfoSec, can be found here: https://github.com/dropbox/zxcvbn
16+
Note, the validation and password strength rules are only examples, demonstrating the changes in the UI when certain conditions are met. We expect consumers will substitute their own, more robust, validation algorithm. In this demo the password strength is determined by how often validation rules are met. A good open-source password strength estimator, recommended by InfoSec, is [zxcvbn](https://github.com/dropbox/zxcvbn).
1717

1818
```ts file="./examples/PasswordStrength/PasswordStrengthDemo.tsx"
1919

packages/react-core/src/demos/examples/PasswordStrength/PasswordStrengthDemo.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { type JSX } from 'react';
1+
import React, { JSX } from 'react';
22
import { Form, FormGroup, FormHelperText, HelperText, HelperTextItem, TextInput } from '@patternfly/react-core';
33
import ExclamationCircleIcon from '@patternfly/react-icons/dist/esm/icons/exclamation-circle-icon';
44
import ExclamationTriangleIcon from '@patternfly/react-icons/dist/esm/icons/exclamation-triangle-icon';
@@ -102,7 +102,7 @@ export const PasswordStrengthDemo: React.FunctionComponent = () => {
102102
>
103103
<TextInput
104104
isRequired
105-
type="text"
105+
type="password"
106106
id="password-field"
107107
name="password-field"
108108
aria-describedby="password-field-helper"

0 commit comments

Comments
 (0)