Skip to content

Commit 5956094

Browse files
committed
remove Page setion variants that are no longer needed and update snapshots
1 parent 3900e2b commit 5956094

30 files changed

+64
-339
lines changed

packages/react-core/src/components/Page/__tests__/Page.test.tsx

-39
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ describe('Page', () => {
3232
const { asFragment } = render(
3333
<Page {...props} header={Header} sidebar={Sidebar}>
3434
<PageSection variant="default">Section with default background</PageSection>
35-
<PageSection variant="light">Section with light background</PageSection>
36-
<PageSection variant="dark">Section with dark background</PageSection>
37-
<PageSection variant="darker">Section with darker background</PageSection>
3835
</Page>
3936
);
4037

@@ -52,9 +49,6 @@ describe('Page', () => {
5249
const { asFragment } = render(
5350
<Page {...props} header={Header} sidebar={Sidebar}>
5451
<PageSection variant="default">Section with default background</PageSection>
55-
<PageSection variant="light">Section with light background</PageSection>
56-
<PageSection variant="dark">Section with dark background</PageSection>
57-
<PageSection variant="darker">Section with darker background</PageSection>
5852
</Page>
5953
);
6054

@@ -68,9 +62,6 @@ describe('Page', () => {
6862
const { asFragment } = render(
6963
<Page {...props} header={Header} sidebar={Sidebar}>
7064
<PageSection variant="default">Section with default background</PageSection>
71-
<PageSection variant="light">Section with light background</PageSection>
72-
<PageSection variant="dark">Section with dark background</PageSection>
73-
<PageSection variant="darker">Section with darker background</PageSection>
7465
</Page>
7566
);
7667

@@ -94,9 +85,6 @@ describe('Page', () => {
9485
const { asFragment } = render(
9586
<Page {...props} header={Header} sidebar={Sidebar} breadcrumb={<PageBreadcrumb />}>
9687
<PageSection variant="default">Section with default background</PageSection>
97-
<PageSection variant="light">Section with light background</PageSection>
98-
<PageSection variant="dark">Section with dark background</PageSection>
99-
<PageSection variant="darker">Section with darker background</PageSection>
10088
</Page>
10189
);
10290

@@ -127,9 +115,6 @@ describe('Page', () => {
127115
breadcrumbProps={{ stickyOnBreakpoint: { sm: 'top', md: 'top', lg: 'top', xl: 'top', '2xl': 'top' } }}
128116
>
129117
<PageSection variant="default">Section with default background</PageSection>
130-
<PageSection variant="light">Section with light background</PageSection>
131-
<PageSection variant="dark">Section with dark background</PageSection>
132-
<PageSection variant="darker">Section with darker background</PageSection>
133118
</Page>
134119
);
135120

@@ -162,9 +147,6 @@ describe('Page', () => {
162147
}}
163148
>
164149
<PageSection variant="default">Section with default background</PageSection>
165-
<PageSection variant="light">Section with light background</PageSection>
166-
<PageSection variant="dark">Section with dark background</PageSection>
167-
<PageSection variant="darker">Section with darker background</PageSection>
168150
</Page>
169151
);
170152

@@ -189,9 +171,6 @@ describe('Page', () => {
189171
</Breadcrumb>
190172
</PageBreadcrumb>
191173
<PageSection variant="default">Section with default background</PageSection>
192-
<PageSection variant="light">Section with light background</PageSection>
193-
<PageSection variant="dark">Section with dark background</PageSection>
194-
<PageSection variant="darker">Section with darker background</PageSection>
195174
</Page>
196175
);
197176

@@ -216,9 +195,6 @@ describe('Page', () => {
216195
</Breadcrumb>
217196
</PageBreadcrumb>
218197
<PageSection variant="default">Section with default background</PageSection>
219-
<PageSection variant="light">Section with light background</PageSection>
220-
<PageSection variant="dark">Section with dark background</PageSection>
221-
<PageSection variant="darker">Section with darker background</PageSection>
222198
</Page>
223199
);
224200

@@ -245,9 +221,6 @@ describe('Page', () => {
245221
</Breadcrumb>
246222
</PageBreadcrumb>
247223
<PageSection variant="default">Section with default background</PageSection>
248-
<PageSection variant="light">Section with light background</PageSection>
249-
<PageSection variant="dark">Section with dark background</PageSection>
250-
<PageSection variant="darker">Section with darker background</PageSection>
251224
</Page>
252225
);
253226

@@ -275,9 +248,6 @@ describe('Page', () => {
275248
</Nav>
276249
</PageNavigation>
277250
<PageSection variant="default">Section with default background</PageSection>
278-
<PageSection variant="light">Section with light background</PageSection>
279-
<PageSection variant="dark">Section with dark background</PageSection>
280-
<PageSection variant="darker">Section with darker background</PageSection>
281251
</Page>
282252
);
283253

@@ -317,9 +287,6 @@ describe('Page', () => {
317287
</PageNavigation>
318288
</PageGroup>
319289
<PageSection variant="default">Section with default background</PageSection>
320-
<PageSection variant="light">Section with light background</PageSection>
321-
<PageSection variant="dark">Section with dark background</PageSection>
322-
<PageSection variant="darker">Section with darker background</PageSection>
323290
</Page>
324291
);
325292

@@ -373,9 +340,6 @@ describe('Page', () => {
373340
}}
374341
>
375342
<PageSection variant="default">Section with default background</PageSection>
376-
<PageSection variant="light">Section with light background</PageSection>
377-
<PageSection variant="dark">Section with dark background</PageSection>
378-
<PageSection variant="darker">Section with darker background</PageSection>
379343
</Page>
380344
);
381345

@@ -411,9 +375,6 @@ describe('Page', () => {
411375
data-testid="page-test-id"
412376
>
413377
<PageSection variant="default">Section with default background</PageSection>
414-
<PageSection variant="light">Section with light background</PageSection>
415-
<PageSection variant="dark">Section with dark background</PageSection>
416-
<PageSection variant="darker">Section with darker background</PageSection>
417378
</Page>
418379
);
419380

0 commit comments

Comments
 (0)