Skip to content

Commit

Permalink
fix(table): adjust border table thickness and sortable table icon (#1154
Browse files Browse the repository at this point in the history
)

fix: update border table styles, adjust sort icon sizes, add note
  • Loading branch information
JoshMK authored Aug 10, 2023
1 parent 0dd10f2 commit 5f0c732
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions docs/pages/components/Table.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,10 @@ function SortableTableExample() {
}
```

<Note>
As a best practice, when a table has sorted columns an author should indicate which column is currently sorted by setting the sort direction for the active sorted column.
</Note>

## Props

### Table
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/styles/table.css
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@
border: 1px solid var(--gray-40);
}

.Table--border .TableHeader {
border-bottom: 2px solid var(--gray-40);
}

.cauldron--theme-dark .Table--border,
.cauldron--theme-dark .Table--border .TableHeader,
.cauldron--theme-dark .Table--border .TableFooter,
Expand Down

0 comments on commit 5f0c732

Please sign in to comment.