Skip to content

Commit

Permalink
remove Page setion variants that are no longer needed and update snap…
Browse files Browse the repository at this point in the history
…shots
  • Loading branch information
tlabaj committed Nov 1, 2023
1 parent 3900e2b commit 5956094
Show file tree
Hide file tree
Showing 30 changed files with 64 additions and 339 deletions.
39 changes: 0 additions & 39 deletions packages/react-core/src/components/Page/__tests__/Page.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ describe('Page', () => {
const { asFragment } = render(
<Page {...props} header={Header} sidebar={Sidebar}>
<PageSection variant="default">Section with default background</PageSection>
<PageSection variant="light">Section with light background</PageSection>
<PageSection variant="dark">Section with dark background</PageSection>
<PageSection variant="darker">Section with darker background</PageSection>
</Page>
);

Expand All @@ -52,9 +49,6 @@ describe('Page', () => {
const { asFragment } = render(
<Page {...props} header={Header} sidebar={Sidebar}>
<PageSection variant="default">Section with default background</PageSection>
<PageSection variant="light">Section with light background</PageSection>
<PageSection variant="dark">Section with dark background</PageSection>
<PageSection variant="darker">Section with darker background</PageSection>
</Page>
);

Expand All @@ -68,9 +62,6 @@ describe('Page', () => {
const { asFragment } = render(
<Page {...props} header={Header} sidebar={Sidebar}>
<PageSection variant="default">Section with default background</PageSection>
<PageSection variant="light">Section with light background</PageSection>
<PageSection variant="dark">Section with dark background</PageSection>
<PageSection variant="darker">Section with darker background</PageSection>
</Page>
);

Expand All @@ -94,9 +85,6 @@ describe('Page', () => {
const { asFragment } = render(
<Page {...props} header={Header} sidebar={Sidebar} breadcrumb={<PageBreadcrumb />}>
<PageSection variant="default">Section with default background</PageSection>
<PageSection variant="light">Section with light background</PageSection>
<PageSection variant="dark">Section with dark background</PageSection>
<PageSection variant="darker">Section with darker background</PageSection>
</Page>
);

Expand Down Expand Up @@ -127,9 +115,6 @@ describe('Page', () => {
breadcrumbProps={{ stickyOnBreakpoint: { sm: 'top', md: 'top', lg: 'top', xl: 'top', '2xl': 'top' } }}
>
<PageSection variant="default">Section with default background</PageSection>
<PageSection variant="light">Section with light background</PageSection>
<PageSection variant="dark">Section with dark background</PageSection>
<PageSection variant="darker">Section with darker background</PageSection>
</Page>
);

Expand Down Expand Up @@ -162,9 +147,6 @@ describe('Page', () => {
}}
>
<PageSection variant="default">Section with default background</PageSection>
<PageSection variant="light">Section with light background</PageSection>
<PageSection variant="dark">Section with dark background</PageSection>
<PageSection variant="darker">Section with darker background</PageSection>
</Page>
);

Expand All @@ -189,9 +171,6 @@ describe('Page', () => {
</Breadcrumb>
</PageBreadcrumb>
<PageSection variant="default">Section with default background</PageSection>
<PageSection variant="light">Section with light background</PageSection>
<PageSection variant="dark">Section with dark background</PageSection>
<PageSection variant="darker">Section with darker background</PageSection>
</Page>
);

Expand All @@ -216,9 +195,6 @@ describe('Page', () => {
</Breadcrumb>
</PageBreadcrumb>
<PageSection variant="default">Section with default background</PageSection>
<PageSection variant="light">Section with light background</PageSection>
<PageSection variant="dark">Section with dark background</PageSection>
<PageSection variant="darker">Section with darker background</PageSection>
</Page>
);

Expand All @@ -245,9 +221,6 @@ describe('Page', () => {
</Breadcrumb>
</PageBreadcrumb>
<PageSection variant="default">Section with default background</PageSection>
<PageSection variant="light">Section with light background</PageSection>
<PageSection variant="dark">Section with dark background</PageSection>
<PageSection variant="darker">Section with darker background</PageSection>
</Page>
);

Expand Down Expand Up @@ -275,9 +248,6 @@ describe('Page', () => {
</Nav>
</PageNavigation>
<PageSection variant="default">Section with default background</PageSection>
<PageSection variant="light">Section with light background</PageSection>
<PageSection variant="dark">Section with dark background</PageSection>
<PageSection variant="darker">Section with darker background</PageSection>
</Page>
);

Expand Down Expand Up @@ -317,9 +287,6 @@ describe('Page', () => {
</PageNavigation>
</PageGroup>
<PageSection variant="default">Section with default background</PageSection>
<PageSection variant="light">Section with light background</PageSection>
<PageSection variant="dark">Section with dark background</PageSection>
<PageSection variant="darker">Section with darker background</PageSection>
</Page>
);

Expand Down Expand Up @@ -373,9 +340,6 @@ describe('Page', () => {
}}
>
<PageSection variant="default">Section with default background</PageSection>
<PageSection variant="light">Section with light background</PageSection>
<PageSection variant="dark">Section with dark background</PageSection>
<PageSection variant="darker">Section with darker background</PageSection>
</Page>
);

Expand Down Expand Up @@ -411,9 +375,6 @@ describe('Page', () => {
data-testid="page-test-id"
>
<PageSection variant="default">Section with default background</PageSection>
<PageSection variant="light">Section with light background</PageSection>
<PageSection variant="dark">Section with dark background</PageSection>
<PageSection variant="darker">Section with darker background</PageSection>
</Page>
);

Expand Down
Loading

0 comments on commit 5956094

Please sign in to comment.