Skip to content

Commit bb1c8c0

Browse files
renovate[bot]castastrophecaseyisonit
authored
fix: update dependency @spectrum-css/table to v8 (#5336)
* chore: update dependency @spectrum-css/table to v8 * fix(table,styles): use latest CSS * chore: update golden hash * chore: revert hash to get clean run * chore: new hash after clean run --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: [ Cassondra ] <castastrophe@users.noreply.github.com> Co-authored-by: Casey Eickhoff <ceickhoff@adobe.com>
1 parent 03a4439 commit bb1c8c0

19 files changed

+237
-1764
lines changed

.changeset/stale-candies-camp.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
'@spectrum-web-components/status-light': patch
66
'@spectrum-web-components/styles': patch
77
'@spectrum-web-components/switch': patch
8+
'@spectrum-web-components/table': patch
89
'@spectrum-web-components/tabs': patch
910
'@spectrum-web-components/toast': patch
1011
'@spectrum-web-components/tooltip': patch

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ parameters:
1414
# 3. Commit this change to the PR branch where the changes exist.
1515
current_golden_images_hash:
1616
type: string
17-
default: 45240d1c037e4a992a9bb6269194d30d4724cce5
17+
default: 3412e93be28e587e2ded76d6c19d051e401e2623
1818
wireit_cache_name:
1919
type: string
2020
default: wireit

packages/table/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
"@spectrum-web-components/icons-ui": "1.5.0"
136136
},
137137
"devDependencies": {
138-
"@spectrum-css/table": "7.0.0-s2-foundations.17"
138+
"@spectrum-css/table": "8.1.0"
139139
},
140140
"types": "./src/index.d.ts",
141141
"customElements": "custom-elements.json",

packages/table/src/spectrum-table-body.css

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,13 @@ governing permissions and limitations under the License.
1414
:host {
1515
border-radius: var(--mod-table-border-radius, var(--spectrum-table-border-radius));
1616
border: none;
17+
display: table-row-group;
1718
position: relative;
1819
}
1920

2021
:host([drop-target]) {
21-
--spectrum-table-border-color: transparent;
22+
--mod-table-border-color: transparent;
2223
outline-width: var(--mod-table-focus-indicator-thickness, var(--spectrum-table-focus-indicator-thickness));
2324
outline-style: solid;
2425
outline-color: var(--highcontrast-table-focus-indicator-color, var(--mod-table-drop-zone-outline-color, var(--spectrum-table-drop-zone-outline-color)));
2526
}
26-
27-
:host {
28-
display: table-row-group;
29-
}

packages/table/src/spectrum-table-cell.css

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ governing permissions and limitations under the License.
2727

2828
:host {
2929
border-block-start: var(--mod-table-border-width, var(--spectrum-table-border-width)) solid var(--highcontrast-table-divider-color, var(--mod-table-divider-color, var(--spectrum-table-divider-color)));
30-
}
31-
32-
:host {
3330
box-sizing: border-box;
3431
font-size: var(--mod-table-row-font-size, var(--spectrum-table-row-font-size));
3532
font-weight: var(--mod-table-row-font-weight, var(--spectrum-table-row-font-weight));
@@ -44,6 +41,7 @@ governing permissions and limitations under the License.
4441
}
4542

4643
:host {
44+
display: table-cell;
4745
position: relative;
4846
}
4947

@@ -60,10 +58,6 @@ governing permissions and limitations under the License.
6058
border-inline-end: var(--mod-table-border-width, var(--spectrum-table-border-width)) solid var(--highcontrast-table-divider-color, var(--mod-table-divider-color, var(--spectrum-table-divider-color)));
6159
}
6260

63-
:host {
64-
display: table-cell;
65-
}
66-
6761
.spectrum-Table-cell--collapsible {
6862
padding-block: 0;
6963
padding-inline-start: calc(var(--spectrum-table-row-tier, 0px) * var(--spectrum-table-collapsible-tier-indent));

packages/table/src/spectrum-table-checkbox-cell.css

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ governing permissions and limitations under the License.
4242

4343
:host(:not([head-cell])) {
4444
border-block-start: var(--mod-table-border-width, var(--spectrum-table-border-width)) solid var(--highcontrast-table-divider-color, var(--mod-table-divider-color, var(--spectrum-table-divider-color)));
45-
}
46-
47-
:host(:not([head-cell])) {
4845
box-sizing: border-box;
4946
font-size: var(--mod-table-row-font-size, var(--spectrum-table-row-font-size));
5047
font-weight: var(--mod-table-row-font-weight, var(--spectrum-table-row-font-weight));
@@ -60,6 +57,7 @@ governing permissions and limitations under the License.
6057

6158
:host(:not([head-cell])),
6259
:host([head-cell]) {
60+
display: table-cell;
6361
position: relative;
6462
}
6563

@@ -94,8 +92,3 @@ governing permissions and limitations under the License.
9492
margin-block-start: calc(var(--mod-table-header-checkbox-block-spacing, var(--spectrum-table-header-checkbox-block-spacing)) - var(--mod-table-border-width, var(--spectrum-table-border-width)));
9593
margin-block-end: var(--mod-table-header-checkbox-block-spacing, var(--spectrum-table-header-checkbox-block-spacing));
9694
}
97-
98-
:host(:not([head-cell])),
99-
:host([head-cell]) {
100-
display: table-cell;
101-
}

packages/table/src/spectrum-table-head-cell.css

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ governing permissions and limitations under the License.
7575
}
7676

7777
:host {
78+
display: table-cell;
7879
position: relative;
7980
}
8081

@@ -92,10 +93,6 @@ governing permissions and limitations under the License.
9293
margin-block-end: var(--mod-table-header-checkbox-block-spacing, var(--spectrum-table-header-checkbox-block-spacing));
9394
}
9495

95-
:host {
96-
display: table-cell;
97-
}
98-
9996
:host .spectrum-Table-scroller {
10097
border-block-end: var(--mod-table-border-width, var(--spectrum-table-border-width)) solid var(--highcontrast-table-border-color, var(--mod-table-border-color, var(--spectrum-table-border-color)));
10198
}

packages/table/src/spectrum-table-row.css

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,14 @@ governing permissions and limitations under the License.
5353
border-inline-end: var(--mod-table-outer-border-inline-width, var(--spectrum-table-outer-border-inline-width)) solid var(--highcontrast-table-border-color, var(--mod-table-border-color, var(--spectrum-table-border-color)));
5454
}
5555

56+
:host {
57+
transition: background-color var(--highcontrast-table-transition-duration, var(--mod-table-transition-duration, var(--spectrum-table-transition-duration))) ease-in-out;
58+
cursor: pointer;
59+
cursor: var(--mod-table-cursor-row-default, pointer);
60+
border-block-start: none;
61+
position: relative;
62+
}
63+
5664
:host(:first-child) ::slotted(:first-child) {
5765
border-start-start-radius: var(--mod-table-border-radius, var(--spectrum-table-border-radius));
5866
}
@@ -69,14 +77,6 @@ governing permissions and limitations under the License.
6977
border-end-end-radius: var(--mod-table-border-radius, var(--spectrum-table-border-radius));
7078
}
7179

72-
:host {
73-
transition: background-color var(--highcontrast-table-transition-duration, var(--mod-table-transition-duration, var(--spectrum-table-transition-duration))) ease-in-out;
74-
cursor: pointer;
75-
cursor: var(--mod-table-cursor-row-default, pointer);
76-
border-block-start: none;
77-
position: relative;
78-
}
79-
8080
:host(:first-child) {
8181
border-start-start-radius: var(--mod-table-border-radius, var(--spectrum-table-border-radius));
8282
border-start-end-radius: var(--mod-table-border-radius, var(--spectrum-table-border-radius));
@@ -125,7 +125,7 @@ governing permissions and limitations under the License.
125125
}
126126

127127
:host([drop-target]) {
128-
--spectrum-table-border-color: var(--highcontrast-table-focus-indicator-color, transparent);
128+
--mod-table-border-color: var(--highcontrast-table-focus-indicator-color, transparent);
129129
outline-width: var(--mod-table-focus-indicator-thickness, var(--spectrum-table-focus-indicator-thickness));
130130
outline-style: solid;
131131
outline-color: var(--highcontrast-table-focus-indicator-color, var(--mod-table-drop-zone-outline-color, var(--spectrum-table-drop-zone-outline-color)));
@@ -259,19 +259,19 @@ governing permissions and limitations under the License.
259259
}
260260

261261
.spectrum-Table-row--thumbnail {
262-
--table-thumbnail-cell-block-spacing: var(--mod-table-thumbnail-block-spacing, var(--spectrum-table-thumbnail-block-spacing));
263-
--table-thumbnail-inner-content-block-spacing: max(0px, calc((var(--mod-table-thumbnail-size, var(--spectrum-table-thumbnail-size)) - (var(--mod-table-row-line-height, var(--spectrum-table-row-line-height)) * var(--mod-table-header-font-size, var(--spectrum-table-row-font-size)))) / 2));
262+
--spectrum-table-thumbnail-cell-block-spacing: var(--mod-table-thumbnail-block-spacing, var(--spectrum-table-thumbnail-block-spacing));
263+
--spectrum-table-thumbnail-inner-content-block-spacing: max(0px, calc((var(--mod-table-thumbnail-size, var(--spectrum-table-thumbnail-size)) - (var(--mod-table-row-line-height, var(--spectrum-table-row-line-height)) * var(--mod-table-header-font-size, var(--spectrum-table-row-font-size)))) / 2));
264264
}
265265

266266
.spectrum-Table-row--thumbnail ::slotted(*) {
267-
padding-block: calc(var(--table-thumbnail-cell-block-spacing) + var(--table-thumbnail-inner-content-block-spacing));
267+
padding-block: calc(var(--spectrum-table-thumbnail-cell-block-spacing) + var(--spectrum-table-thumbnail-inner-content-block-spacing));
268268
}
269269

270270
.spectrum-Table-row--thumbnail .spectrum-Table-cell--thumbnail {
271271
padding-block: 0;
272272
}
273273

274274
.spectrum-Table-row--thumbnail.spectrum-Table-row--collapsible {
275-
--table-thumbnail-inner-minimum-block-spacing: max(0px, calc((var(--mod-table-disclosure-icon-size, var(--spectrum-table-disclosure-icon-size)) - var(--mod-table-thumbnail-size, var(--spectrum-table-thumbnail-size))) / 2));
276-
--table-thumbnail-cell-block-spacing: max(var(--mod-table-thumbnail-block-spacing, var(--spectrum-table-thumbnail-block-spacing)), var(--table-thumbnail-inner-minimum-block-spacing));
275+
--spectrum-table-thumbnail-inner-minimum-block-spacing: max(0px, calc((var(--mod-table-disclosure-icon-size, var(--spectrum-table-disclosure-icon-size)) - var(--mod-table-thumbnail-size, var(--spectrum-table-thumbnail-size))) / 2));
276+
--spectrum-table-thumbnail-cell-block-spacing: max(var(--mod-table-thumbnail-block-spacing, var(--spectrum-table-thumbnail-block-spacing)), var(--spectrum-table-thumbnail-inner-minimum-block-spacing));
277277
}

0 commit comments

Comments
 (0)