Skip to content

Commit 085c54f

Browse files
fix: align SearchForm help icon to PF6 (#66)
Signed-off-by: Carlos Feria <[email protected]>
1 parent 6a8cde0 commit 085c54f

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

client/src/app/pages/RekorSearch/components/SearchForm.tsx

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
FlexItem,
55
Form,
66
FormGroup,
7+
FormGroupLabelHelp,
78
FormHelperText,
89
FormSelect,
910
FormSelectOption,
@@ -15,8 +16,7 @@ import {
1516
import { type ReactNode, useEffect } from "react";
1617
import { Controller, type RegisterOptions, useForm } from "react-hook-form";
1718
import { type Attribute, ATTRIBUTES } from "../../../api/rekor-api";
18-
import { ExclamationCircleIcon, HelpIcon } from "@patternfly/react-icons";
19-
import styles from "@patternfly/react-styles/css/components/Form/form";
19+
import { ExclamationCircleIcon } from "@patternfly/react-icons";
2020

2121
export interface FormProps {
2222
defaultValues?: FormInputs;
@@ -170,17 +170,9 @@ export function SearchForm({ defaultValues, onSubmit, isLoading }: FormProps) {
170170
<FormGroup
171171
label={"Attribute"}
172172
fieldId={"rekor-search-attribute"}
173-
labelInfo={
173+
labelHelp={
174174
<Popover bodyContent={inputConfigByAttribute[watchAttribute].tooltipText} position={"right"}>
175-
<button
176-
type="button"
177-
aria-label="More info for attribute field"
178-
onClick={(e) => e.preventDefault()}
179-
aria-describedby="attribute-info"
180-
className={styles.formGroupLabelHelp}
181-
>
182-
<HelpIcon />
183-
</button>
175+
<FormGroupLabelHelp aria-label="More info for attribute field" />
184176
</Popover>
185177
}
186178
>

0 commit comments

Comments
 (0)