Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .storybook/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,6 @@ h6 {
.custom-hightable tbody tr:not(:hover) td.delegated {
background-color: #ffe9a9;
}
.custom-hightable thead th.tall {
height: 80px;
}
3 changes: 2 additions & 1 deletion src/HighTable.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,8 @@
/* Default headers: sort arrow positioning and coloring */
th[aria-sort]::after {
right: calc(var(--cell-horizontal-padding) + 1rem);
top: 4px;
top: 50%;
transform: translateY(-50%);
padding-left: 2px;
background: none;
color: var(--secondary-sort-icon-color);
Expand Down
11 changes: 11 additions & 0 deletions src/components/HighTable/HighTable.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,17 @@ export const MultiSort: Story = {
data: sortableDataFrame(createUnsortableData()),
},
}
export const CustomTallHeaderStyle: Story = {
args: {
data: sortableDataFrame(createUnsortableData()),
className: 'custom-hightable',
columnConfiguration: {
Double: {
className: 'tall',
},
},
},
}
export const CustomHeaderStyle: Story = {
args: {
data: createUnsortableData(),
Expand Down