You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(Alert): Allowed for non header elements to be set at the Alert title (#8518)
* chore(Alert): Allowed for non header elements to be set at the Alert title
* fix lint issues
* update docs wording
* fix github's lint warnings
* clean up useEffect deps
* fix wording
Copy file name to clipboardExpand all lines: packages/react-core/src/components/Alert/examples/Alert.md
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,8 +50,9 @@ PatternFly supports several properties and variations that can be used to add ex
50
50
51
51
* As demonstrated in the 3rd and 4th variations below, use the `actionClose` property to add an `<AlertActionCloseButton>` component, which can be used to manage and customize alert dismissals. `actionClose` can be used with or without the presence of `actionLinks`.
52
52
53
-
* As demonstrated in the 5th and 6th variations below, use the `titleHeadingLevel` property to set the heading level of an alert title. Headings should be ordered by their level and heading levels should not be skipped. For example, a heading of an `h2` level should not be followed directly by an `h4`.
54
-
53
+
* As demonstrated in the 5th and 6th variations below, use the `component` property to set the element for an alert title.
54
+
* If the `description` prop is not passed in, then the `component` prop should be set to a non-heading element such as a `span` or `div`.
55
+
* If the `description` prop is passed in, then the `component` prop should be a heading element. Headings should be ordered by their level and heading levels should not be skipped. For example, a heading of an `h2` level should not be followed directly by an `h4`.
0 commit comments