Skip to content

Commit 2dc60e6

Browse files
committed
fix(title): Fix title in UnavailableContent
1 parent 8b6a783 commit 2dc60e6

2 files changed

Lines changed: 37 additions & 5 deletions

File tree

packages/module/src/UnavailableContent/UnavailableContent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const UnavailableContent: React.FunctionComponent<UnavailableContentProps> = ({
2323
const classes = useStyles();
2424
return (
2525
<EmptyState variant={EmptyStateVariant.lg} className={clsx(classes.emptyStateUnavailable)}>
26-
<EmptyStateHeader title="This page is temporarily unavailable" icon={<EmptyStateIcon icon={ExclamationCircleIcon} />} />
26+
<EmptyStateHeader titleText="This page is temporarily unavailable" icon={<EmptyStateIcon icon={ExclamationCircleIcon} />} headingLevel="h5" />
2727
<EmptyStateBody>
2828
Try refreshing the page. If the problem persists, contact your organization administrator or visit our{' '}
2929
<Button component='a' className={clsx(classes.emptyStateLinkButton)} variant='link' href={statusPageUrl} target="_blank" rel="noopener noreferrer">

packages/module/src/UnavailableContent/__snapshots__/UnavailableContent.test.tsx.snap

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ exports[`Unavailable component should render with a link 1`] = `
1313
>
1414
<div
1515
class="pf-v5-c-empty-state__header"
16-
title="This page is temporarily unavailable"
1716
>
1817
<div
1918
class="pf-v5-c-empty-state__icon"
@@ -32,6 +31,15 @@ exports[`Unavailable component should render with a link 1`] = `
3231
/>
3332
</svg>
3433
</div>
34+
<div
35+
class="pf-v5-c-empty-state__title"
36+
>
37+
<h5
38+
class="pf-v5-c-empty-state__title-text"
39+
>
40+
This page is temporarily unavailable
41+
</h5>
42+
</div>
3543
</div>
3644
<div
3745
class="pf-v5-c-empty-state__body"
@@ -66,7 +74,6 @@ exports[`Unavailable component should render with a link 1`] = `
6674
>
6775
<div
6876
class="pf-v5-c-empty-state__header"
69-
title="This page is temporarily unavailable"
7077
>
7178
<div
7279
class="pf-v5-c-empty-state__icon"
@@ -85,6 +92,15 @@ exports[`Unavailable component should render with a link 1`] = `
8592
/>
8693
</svg>
8794
</div>
95+
<div
96+
class="pf-v5-c-empty-state__title"
97+
>
98+
<h5
99+
class="pf-v5-c-empty-state__title-text"
100+
>
101+
This page is temporarily unavailable
102+
</h5>
103+
</div>
88104
</div>
89105
<div
90106
class="pf-v5-c-empty-state__body"
@@ -176,7 +192,6 @@ exports[`Unavailable component should render with no link 1`] = `
176192
>
177193
<div
178194
class="pf-v5-c-empty-state__header"
179-
title="This page is temporarily unavailable"
180195
>
181196
<div
182197
class="pf-v5-c-empty-state__icon"
@@ -195,6 +210,15 @@ exports[`Unavailable component should render with no link 1`] = `
195210
/>
196211
</svg>
197212
</div>
213+
<div
214+
class="pf-v5-c-empty-state__title"
215+
>
216+
<h5
217+
class="pf-v5-c-empty-state__title-text"
218+
>
219+
This page is temporarily unavailable
220+
</h5>
221+
</div>
198222
</div>
199223
<div
200224
class="pf-v5-c-empty-state__body"
@@ -229,7 +253,6 @@ exports[`Unavailable component should render with no link 1`] = `
229253
>
230254
<div
231255
class="pf-v5-c-empty-state__header"
232-
title="This page is temporarily unavailable"
233256
>
234257
<div
235258
class="pf-v5-c-empty-state__icon"
@@ -248,6 +271,15 @@ exports[`Unavailable component should render with no link 1`] = `
248271
/>
249272
</svg>
250273
</div>
274+
<div
275+
class="pf-v5-c-empty-state__title"
276+
>
277+
<h5
278+
class="pf-v5-c-empty-state__title-text"
279+
>
280+
This page is temporarily unavailable
281+
</h5>
282+
</div>
251283
</div>
252284
<div
253285
class="pf-v5-c-empty-state__body"

0 commit comments

Comments
 (0)