Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit fef21d3

Browse files
authored
feat(table): added loading state (#2483)
1 parent 207c518 commit fef21d3

File tree

5 files changed

+1374
-0
lines changed

5 files changed

+1374
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ebay/skin": minor
3+
---
4+
5+
feat(table): added loading state

dist/table/table.css

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
.table--freeze-column-3 tr td:nth-child(-n + 3),
7878
.table--freeze-column-3 tr th:nth-child(-n + 3) {
7979
left: 0;
80+
max-width: 124px;
8081
position: sticky;
8182
}
8283

@@ -149,6 +150,34 @@
149150
padding-inline-end: 0;
150151
}
151152

153+
.table--loading-state {
154+
overflow: hidden;
155+
}
156+
157+
.table--loading-state table {
158+
opacity: 0.15;
159+
-webkit-user-select: none;
160+
user-select: none;
161+
}
162+
163+
.table--loading-state .signal,
164+
.table--loading-state img {
165+
filter: var(--color-media-disabled-filter);
166+
}
167+
168+
.table--loading-state a {
169+
cursor: default;
170+
pointer-events: none;
171+
text-decoration: none;
172+
}
173+
174+
.table--loading-state .progress-bar-expressive {
175+
bottom: 50%;
176+
left: 0;
177+
position: absolute;
178+
right: 0;
179+
}
180+
152181
.table--mode-selection td:first-child,
153182
.table--mode-selection th:first-child {
154183
min-width: 48px;

0 commit comments

Comments
 (0)