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
Copy file name to clipboardExpand all lines: packages/react-core/src/components/Hero/examples/Hero.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,16 +3,16 @@ id: Hero
3
3
section: components
4
4
cssPrefix: pf-v6-c-hero
5
5
beta: true
6
-
propComponents: ['Hero', 'HeroBody']
6
+
propComponents: ['Hero']
7
7
---
8
8
9
9
## Examples
10
10
11
11
### Basic
12
12
13
-
To ensure readability and prevent text from overlapping with the background image, use the `<HeroBody>` component. The `<HeroBody>` is optional and can be omitted if there's no background image or if you'd like finer control over text placement.
13
+
The `bodyWidth`and `bodyMaxWidth` properties can be used for finer control over the placement of text content within the `<Hero>`, such as if you omit a background image. Be mindful of adjusting these properties when a background image is still present, as you may need to ensure the contrast of text is sufficient should it overlap the image.
14
14
15
-
When using `gradientLight` or `gradientDark`, regardless of the presence of a `<HeroBody>`, check the color contrast to ensure proper accessibility.
15
+
When using `gradientLight` or `gradientDark`, check the color contrast to ensure proper accessibility.
0 commit comments