Skip to content

Commit c626313

Browse files
fix(PasswordStrength) remove popover in demo (#10353)
1 parent 2250261 commit c626313

File tree

1 file changed

+1
-25
lines changed

1 file changed

+1
-25
lines changed

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

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
import React from 'react';
2-
import {
3-
Form,
4-
FormGroup,
5-
FormHelperText,
6-
HelperText,
7-
Popover,
8-
HelperTextItem,
9-
TextInput
10-
} from '@patternfly/react-core';
11-
import HelpIcon from '@patternfly/react-icons/dist/esm/icons/help-icon';
2+
import { Form, FormGroup, FormHelperText, HelperText, HelperTextItem, TextInput } from '@patternfly/react-core';
123
import ExclamationCircleIcon from '@patternfly/react-icons/dist/esm/icons/exclamation-circle-icon';
134
import ExclamationTriangleIcon from '@patternfly/react-icons/dist/esm/icons/exclamation-triangle-icon';
145
import CheckCircleIcon from '@patternfly/react-icons/dist/esm/icons/check-circle-icon';
@@ -89,20 +80,6 @@ export const PasswordStrengthDemo: React.FunctionComponent = () => {
8980
}
9081
};
9182

92-
const iconPopover = (
93-
<Popover headerContent={<div>Password Requirements</div>} bodyContent={<div>Password rules</div>}>
94-
<button
95-
type="button"
96-
aria-label="More info for name field"
97-
onClick={(e) => e.preventDefault()}
98-
aria-describedby="password-field"
99-
className="pf-v5-c-form__group-label-help"
100-
>
101-
<HelpIcon />
102-
</button>
103-
</Popover>
104-
);
105-
10683
const passStrLabel = (
10784
<HelperText>
10885
<HelperTextItem variant={passStrength.variant} icon={passStrength.icon}>
@@ -115,7 +92,6 @@ export const PasswordStrengthDemo: React.FunctionComponent = () => {
11592
<Form>
11693
<FormGroup
11794
label="Password"
118-
labelIcon={iconPopover}
11995
isRequired
12096
fieldId="password-field"
12197
{...(ruleLength === 'success' &&

0 commit comments

Comments
 (0)