Skip to content

Commit 334962e

Browse files
authored
Segment/Pagination: move default border padding to padding prop (#3554)
1 parent 3261f60 commit 334962e

File tree

5 files changed

+15
-8
lines changed

5 files changed

+15
-8
lines changed

.changeset/calm-papayas-give.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@skeletonlabs/skeleton-svelte": patch
3+
"@skeletonlabs/skeleton-react": patch
4+
---
5+
6+
Segment/Pagination: move default border padding to padding prop
7+

packages/skeleton-react/src/components/Pagination/Pagination.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ export const Pagination: FC<PaginationProps> = ({
2020
// Root
2121
base = 'inline-flex items-stretch overflow-hidden',
2222
background = 'preset-outlined-surface-200-800',
23-
border = 'p-2',
23+
border = '',
2424
gap = 'gap-2',
25-
padding = '',
25+
padding = 'p-2',
2626
rounded = 'rounded-container',
2727
classes = '',
2828
// Buttons

packages/skeleton-react/src/components/Segment/Segment.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ const SegmentRoot: FC<SegmentProps> = ({
1212
// Root
1313
base = 'inline-flex items-stretch overflow-hidden',
1414
background = 'preset-outlined-surface-200-800',
15-
border = 'p-2',
15+
border = '',
1616
gap = 'gap-2',
17-
padding = '',
17+
padding = 'p-2',
1818
rounded = 'rounded-container',
1919
width = '',
2020
classes = '',

packages/skeleton-svelte/src/components/Pagination/Pagination.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
// Root
1212
base = 'inline-flex items-stretch overflow-hidden',
1313
background = 'preset-outlined-surface-200-800',
14-
border = 'p-2',
14+
border = '',
1515
gap = 'gap-2',
16-
padding = '',
16+
padding = 'p-2',
1717
rounded = 'rounded-container',
1818
classes = '',
1919
// Titles

packages/skeleton-svelte/src/components/Segment/Segment.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
// Root
99
base = 'inline-flex items-stretch overflow-hidden',
1010
background = 'preset-outlined-surface-200-800',
11-
border = 'p-2',
11+
border = '',
1212
gap = 'gap-2',
13-
padding = '',
13+
padding = 'p-2',
1414
rounded = 'rounded-container',
1515
width = '',
1616
classes = '',

0 commit comments

Comments
 (0)