Skip to content

Commit 63a2564

Browse files
authored
fix: Use border radius design token for column headers in sticky header table (#2565)
1 parent b246110 commit 63a2564

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

pages/table/permutations.page.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,19 @@ const permutations = createPermutations<TableProps>([
314314
items: [createSimpleItems(3)],
315315
variant: [undefined, 'full-page'],
316316
},
317+
{
318+
columnDefinitions: [PROPERTY_COLUMNS],
319+
items: [
320+
[
321+
{
322+
name: 'Color',
323+
value: '#000000',
324+
type: 'String',
325+
},
326+
],
327+
],
328+
stickyHeader: [true],
329+
},
317330
]);
318331
/* eslint-enable react/jsx-key */
319332

src/table/styles.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,11 @@ filter search icon.
164164
& > .table {
165165
padding-inline: awsui.$space-table-horizontal;
166166
}
167+
168+
&:not(.table-has-header) {
169+
border-start-start-radius: awsui.$border-radius-container;
170+
border-start-end-radius: awsui.$border-radius-container;
171+
}
167172
}
168173
&::-webkit-scrollbar {
169174
display: none; /* Safari and Chrome */

0 commit comments

Comments
 (0)