Skip to content

Commit

Permalink
lib: Don't show icon by default for FormHelper
Browse files Browse the repository at this point in the history
As per patternfly guidelines [1], validation text (which is main use of
FormHelper) should not have an icon

[1] https://www.patternfly.org/components/forms/form/design-guidelines/#errors-and-validation
  • Loading branch information
skobyda committed Aug 28, 2023
1 parent 97cc456 commit 81b29bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/lib/cockpit-components-form-helper.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const FormHelper = ({ helperText, helperTextInvalid, variant, icon, field
<HelperTextItem
id={fieldId ? (fieldId + "-helper") : undefined}
variant={formHelperVariant}
hasIcon={formHelperVariant !== "default" || icon} icon={icon}>
hasIcon={icon} icon={icon}>
{formHelperVariant === "error" ? helperTextInvalid : helperText}
</HelperTextItem>
</HelperText>
Expand Down

0 comments on commit 81b29bd

Please sign in to comment.