Skip to content

Commit af884b4

Browse files
committed
Removed HeroBody instances, example verbiage updated
1 parent 5ffe512 commit af884b4

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

packages/react-core/src/components/Compass/examples/CompassDemo.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
CompassPanel,
99
CompassMessageBar,
1010
Hero,
11-
HeroBody,
1211
Tabs,
1312
TabsComponent,
1413
Tab,
@@ -122,9 +121,7 @@ export const CompassBasic: React.FunctionComponent = () => {
122121
const mainContent = (
123122
<>
124123
<CompassHero>
125-
<Hero gradientDark={{ stop1: '#000', stop2: '#1b0d33', stop3: '#3d2785' }}>
126-
<HeroBody>Hero</HeroBody>
127-
</Hero>
124+
<Hero gradientDark={{ stop1: '#000', stop2: '#1b0d33', stop3: '#3d2785' }}>Hero</Hero>
128125
</CompassHero>
129126
<CompassMainHeader title={<Title headingLevel="h1">Content title</Title>} />
130127
<CompassContent>

packages/react-core/src/components/Hero/examples/Hero.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ propComponents: ['Hero']
1010

1111
### Basic
1212

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.
13+
If you need finer control over the placement of text content within the `<Hero>`, such as when you omit a background image, adjust the `bodyWidth` and `bodyMaxWidth` properties. Be mindful of using these properties when a background image is still present and ensure there is sufficient contrast between text and any part of the image that it overlaps.
1414

15-
When using `gradientLight` or `gradientDark`, check the color contrast to ensure proper accessibility.
15+
When using `gradientLight` or `gradientDark` to apply gradient backgrounds, check the color contrast to ensure proper accessibility.
1616

1717
```ts file="HeroBasic.tsx"
1818

0 commit comments

Comments
 (0)