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
4 changes: 4 additions & 0 deletions CHANGELOG.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ Prefix the change with one of these keywords:

## [Unreleased]

### Change

- Font size and spacing for tables

## [0.26.3]

### Removed
Expand Down
6 changes: 3 additions & 3 deletions lib/components/Table/Table.Styles.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const styles = {
tableGlobal: `p-3 md:p-4 text-left align-text-top`,
tableHeaderRow: `font-semibold text-sm md:text-base`,
tableBodyRow: `text-sm md:text-base`,
tableGlobal: `p-2 md:py-3.5 md:px-2.5 text-left align-text-top`,
tableHeaderRow: `font-semibold text-sm`,
tableBodyRow: `text-sm`,
borders: `border-b border-cu-black-100 last:border-none`,
striped: `odd:bg-white even:bg-cu-black-25`,
}
12 changes: 6 additions & 6 deletions lib/components/Table/TableHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,24 +62,24 @@ const TableHeader = ({ columns, noWordBreak, sortData }: TableHeaderProps) => {
<div>{column.header}</div>
{column.key === active && ascending ? (
<button
className="block w-4 h-full ml-2"
className="block w-4 h-full ml-1"
aria-label={column?.sort?.sortable ? 'Sort ' + column.key + ' by ascending order' : undefined}
>
<Icon name="chevron-down" size={16} color="#808080" className="inline-block" aria-hidden="true" />
<Icon name="chevron-down" size={12} color="#000000" className="inline-block" aria-hidden="true" />
</button>
) : column.key === active && !ascending ? (
<button
className="block w-4 h-full ml-2"
className="block w-4 h-full ml-1"
aria-label={column?.sort?.sortable ? 'Sort ' + column.key + ' by descending order' : undefined}
>
<Icon name="chevron-up" size={16} color="#808080" className="inline-block" aria-hidden="true" />
<Icon name="chevron-up" size={12} color="#000000" className="inline-block" aria-hidden="true" />
</button>
) : (
<button
className="block w-4 h-full ml-2"
className="block w-4 h-full ml-1"
aria-label={column?.sort?.sortable ? 'Sort by ' + column.key : undefined}
>
<Icon name="chevron-up-down" size={16} color="#808080" className="inline-block" aria-hidden="true" />
<Icon name="chevron-up-down" size={12} color="#000000" className="inline-block" aria-hidden="true" />
</button>
)}
</div>
Expand Down