Skip to content

Commit

Permalink
fix: sort btn focus
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmatthew committed Mar 3, 2022
1 parent 393a1a9 commit 20b4c0c
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/assets/css/custom-full.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/assets/css/custom-full.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/assets/css/custom.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/assets/css/custom.css.map

Large diffs are not rendered by default.

12 changes: 10 additions & 2 deletions scss/_tables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,27 @@ th {
}

.table-lg {
> :not(caption) > * > td {
> :not(caption) > * > * {
padding: $table-cell-padding-y-lg $table-cell-padding-x-lg;
}
}

.o-table__sort-btn {
width: 100%;
padding: .5rem;
padding: $table-cell-padding-y $table-cell-padding-x;
font-weight: bold;
text-align: inherit;
border-radius: 0;
}

.o-table__sort-btn:focus {
box-shadow: 0 0 0 1px inset currentColor;
}

.table-lg .o-table__sort-btn {
padding: $table-cell-padding-y-lg $table-cell-padding-x-lg
}

th:not([aria-sort]) .o-table__sort-btn .o-table__sort-btn__arrow--up,
th:not([aria-sort]) .o-table__sort-btn .o-table__sort-btn__arrow--down {
display: none;
Expand Down

0 comments on commit 20b4c0c

Please sign in to comment.