Skip to content

Commit d9a0747

Browse files
chore: remove styled PageLayout (#7191)
1 parent 32cdcfc commit d9a0747

File tree

5 files changed

+5
-76
lines changed

5 files changed

+5
-76
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/styled-react": major
3+
---
4+
5+
chore: remove styled PageLayout

packages/styled-react/src/__tests__/__snapshots__/exports.test.ts.snap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ exports[`@primer/styled-react exports 1`] = `
2929
"NavList",
3030
"Overlay",
3131
"PageHeader",
32-
"PageLayout",
3332
"ProgressBar",
3433
"RadioGroup",
3534
"RelativeTime",

packages/styled-react/src/__tests__/primer-react.browser.test.tsx

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import {
2626
NavList,
2727
Overlay,
2828
PageHeader,
29-
PageLayout,
3029
RadioGroup,
3130
RelativeTime,
3231
SegmentedControl,
@@ -311,26 +310,6 @@ describe('@primer/react', () => {
311310
expect(window.getComputedStyle(container.firstElementChild!).backgroundColor).toBe('rgb(255, 0, 0)')
312311
})
313312

314-
test('PageLayout supports `sx` prop', () => {
315-
const {container} = render(<PageLayout data-testid="component" sx={{background: 'red'}} />)
316-
expect(window.getComputedStyle(container.firstElementChild!).backgroundColor).toBe('rgb(255, 0, 0)')
317-
})
318-
319-
test('PageLayout.Content supports `sx` prop', () => {
320-
const {container} = render(
321-
<PageLayout.Content as="section" data-testid="component" sx={{background: 'red'}} aria-labelledby="normal" />,
322-
)
323-
324-
const outerElement = container.firstElementChild! as HTMLElement
325-
expect(window.getComputedStyle(outerElement).backgroundColor).toBe('rgb(255, 0, 0)')
326-
expect(outerElement).toHaveAttribute('aria-labelledby', 'normal')
327-
})
328-
329-
test('PageLayout.Pane supports `sx` prop', () => {
330-
const {container} = render(<PageLayout.Pane data-testid="component" sx={{background: 'red'}} />)
331-
expect(window.getComputedStyle(container.firstElementChild!).backgroundColor).toBe('rgb(255, 0, 0)')
332-
})
333-
334313
test('RadioGroup supports `sx` prop', () => {
335314
const {container} = render(
336315
<RadioGroup data-testid="component" name="test" sx={{background: 'red'}}>

packages/styled-react/src/components/PageLayout.tsx

Lines changed: 0 additions & 53 deletions
This file was deleted.

packages/styled-react/src/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ export {Link, type LinkProps} from './components/Link'
4242
export {LinkButton, type LinkButtonProps} from './components/LinkButton'
4343
export {NavList, type NavListProps} from './components/NavList'
4444
export {Overlay} from './components/Overlay'
45-
export {PageLayout, type PageLayoutProps} from './components/PageLayout'
4645
export {
4746
PageHeader,
4847
type PageHeaderProps,

0 commit comments

Comments
 (0)