Skip to content

Commit

Permalink
feat(table): added loading state (#2483)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtBlue authored Nov 6, 2024
1 parent 207c518 commit fef21d3
Show file tree
Hide file tree
Showing 5 changed files with 1,374 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/selfish-flowers-kneel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ebay/skin": minor
---

feat(table): added loading state
29 changes: 29 additions & 0 deletions dist/table/table.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
.table--freeze-column-3 tr td:nth-child(-n + 3),
.table--freeze-column-3 tr th:nth-child(-n + 3) {
left: 0;
max-width: 124px;
position: sticky;
}

Expand Down Expand Up @@ -149,6 +150,34 @@
padding-inline-end: 0;
}

.table--loading-state {
overflow: hidden;
}

.table--loading-state table {
opacity: 0.15;
-webkit-user-select: none;
user-select: none;
}

.table--loading-state .signal,
.table--loading-state img {
filter: var(--color-media-disabled-filter);
}

.table--loading-state a {
cursor: default;
pointer-events: none;
text-decoration: none;
}

.table--loading-state .progress-bar-expressive {
bottom: 50%;
left: 0;
position: absolute;
right: 0;
}

.table--mode-selection td:first-child,
.table--mode-selection th:first-child {
min-width: 48px;
Expand Down
Loading

0 comments on commit fef21d3

Please sign in to comment.