Skip to content

Commit a2b5b51

Browse files
committed
Remove duplicate clipSidebar tests; update changeset for badge-only scope
1 parent ad48044 commit a2b5b51

2 files changed

Lines changed: 1 addition & 11 deletions

File tree

.changeset/timeline-badge-variant-clip-sidebar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
'@primer/react': minor
33
---
44

5-
Timeline: add `variant` prop to `Timeline.Badge` for built-in color schemes, and extend `clipSidebar` to accept `'start'` or `'end'` for one-sided trimming
5+
Timeline: add `variant` prop to `Timeline.Badge` for built-in color schemes (`accent`, `success`, `attention`, `severe`, `danger`, `done`, `open`, `closed`, `sponsors`)

packages/react/src/Timeline/__tests__/Timeline.test.tsx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,6 @@ describe('Timeline', () => {
3636
const {container} = render(<Timeline />)
3737
expect(container.firstChild).not.toHaveAttribute('data-clip-sidebar')
3838
})
39-
40-
it('renders with clipSidebar="start"', () => {
41-
const {container} = render(<Timeline clipSidebar="start" />)
42-
expect(container.firstChild).toHaveAttribute('data-clip-sidebar', 'start')
43-
})
44-
45-
it('renders with clipSidebar="end"', () => {
46-
const {container} = render(<Timeline clipSidebar="end" />)
47-
expect(container.firstChild).toHaveAttribute('data-clip-sidebar', 'end')
48-
})
4939
})
5040

5141
describe('Timeline.Item', () => {

0 commit comments

Comments
 (0)