Skip to content

Commit

Permalink
fix(Table): fix line-height of sorting buttons in smaller table sizes (
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker authored Nov 29, 2022
1 parent 3872c8e commit 97f0019
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ exports[`Table scss have to match snapshot 1`] = `
z-index: 1;
align-items: flex-end;
box-shadow: none;
line-height: var(--line-height-basis);
line-height: inherit;
margin: 0;
padding: 0;
padding-right: 0.5rem;
Expand All @@ -409,7 +409,8 @@ exports[`Table scss have to match snapshot 1`] = `
.dnb-table > thead > tr > th.dnb-table--sortable .dnb-table__sort-button.dnb-button .dnb-button__text,
.dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button .dnb-button__text {
margin: 0;
font-size: inherit; }
font-size: inherit;
line-height: inherit; }
.dnb-table > thead > tr > th.dnb-table--sortable .dnb-table__sort-button.dnb-button .dnb-button__text::after,
.dnb-table .dnb-table__th.dnb-table--sortable .dnb-table__sort-button.dnb-button .dnb-button__text::after {
right: 1rem; }
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.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
// reset anchor
box-shadow: none;

line-height: var(--line-height-basis);
line-height: inherit;

margin: 0;
padding: 0;
Expand All @@ -47,6 +47,7 @@
.dnb-button__text {
margin: 0;
font-size: inherit;
line-height: inherit;

// underline
&::after {
Expand Down

0 comments on commit 97f0019

Please sign in to comment.