Skip to content

Commit

Permalink
fix(Table): ensure accordion column has always a fixed width (#1806)
Browse files Browse the repository at this point in the history
* fix(Table): ensure accordion column has always a fixed width

* Update visual snapshots

Co-authored-by: Tobias Høegh <[email protected]>
  • Loading branch information
tujoworker and Tobias Høegh committed Dec 13, 2022
1 parent 0460280 commit 1b951ef
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -709,12 +709,15 @@ thead > tr > th.dnb-table--active .dnb-table__sort-button.dnb-button:hover:focus
var(--color-black-20); }
.dnb-table__th.dnb-table__th__accordion-icon {
padding: 0; }
.dnb-table__th.dnb-table__th__accordion-icon,
.dnb-table__th.dnb-table__th__accordion-icon div {
width: 3.5rem;
text-indent: -300vw; }
.dnb-table__size--medium .dnb-table__th.dnb-table__th__accordion-icon div {
.dnb-table__size--medium .dnb-table__th.dnb-table__th__accordion-icon, .dnb-table__size--medium
.dnb-table__th.dnb-table__th__accordion-icon div {
width: 3rem; }
.dnb-table__size--small .dnb-table__th.dnb-table__th__accordion-icon div {
.dnb-table__size--small .dnb-table__th.dnb-table__th__accordion-icon, .dnb-table__size--small
.dnb-table__th.dnb-table__th__accordion-icon div {
width: 2.5rem; }
.dnb-table__td.dnb-table__td__accordion-icon {
padding: 0;
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.
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 @@ -24,6 +24,7 @@
padding: 0;

// In case the table-layout is fixed
&,
div {
width: 3.5rem;

Expand Down

0 comments on commit 1b951ef

Please sign in to comment.