Skip to content

Commit

Permalink
fix: spacing and positioning table header cell
Browse files Browse the repository at this point in the history
  • Loading branch information
ifrost1 committed Jul 18, 2022
1 parent 74c8b5c commit f6012dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/Table/Table.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@
* 2) When column is sortable, add an inline icon after the title
*/
.table__header-cell-button {
display: inline-flex;
gap: var(--eds-size-half);
padding: 0;
background: none;
border: none;
Expand All @@ -165,6 +167,11 @@
}
}

.table__header-cell-icon {
position: relative;
bottom: 1px;
}

/*
* Table header cell contents
* 1) A wrapper for the title and sort icon. Uses a flex row so that icon remains at the bottom when one or more titles breaks into multiple lines
Expand Down
1 change: 1 addition & 0 deletions src/components/TableHeaderCell/TableHeaderCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ export const TableHeaderCell = ({
{children}
<div className={clsx(styles['table__header-cell-sort'])}>
<Icon
className={styles['table__header-cell-icon']}
name={iconName}
purpose="informative"
size="1rem"
Expand Down

0 comments on commit f6012dd

Please sign in to comment.