Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use latest Spectrum CSS dependencies #3637

Merged
merged 4 commits into from
Sep 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ executors:
parameters:
current_golden_images_hash:
type: string
default: 6872683e2c47918e89c8c73a15367ca97b15b38e
default: 884613ae56baf07dd7eaa6316db4d79cf8216b1f
wireit_cache_name:
type: string
default: wireit
Expand Down
2 changes: 1 addition & 1 deletion packages/accordion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"@spectrum-web-components/shared": "^0.38.0"
},
"devDependencies": {
"@spectrum-css/accordion": "^4.0.9"
"@spectrum-css/accordion": "^4.0.17"
},
"types": "./src/index.d.ts",
"customElements": "custom-elements.json",
Expand Down
2 changes: 1 addition & 1 deletion packages/action-bar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"@spectrum-web-components/popover": "^0.38.0"
},
"devDependencies": {
"@spectrum-css/actionbar": "^6.0.59"
"@spectrum-css/actionbar": "^7.0.1"
},
"types": "./src/index.d.ts",
"customElements": "custom-elements.json",
Expand Down
2 changes: 1 addition & 1 deletion packages/action-button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"@spectrum-web-components/shared": "^0.38.0"
},
"devDependencies": {
"@spectrum-css/actionbutton": "^4.0.13"
"@spectrum-css/actionbutton": "^5.0.7"
},
"types": "./src/index.d.ts",
"customElements": "custom-elements.json",
Expand Down
3 changes: 3 additions & 0 deletions packages/action-button/src/spectrum-action-button.css
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,7 @@ governing permissions and limitations under the License.
var(--spectrum-actionbutton-font-size)
);
overflow: hidden;
pointer-events: none;
text-overflow: ellipsis;
white-space: nowrap;
}
Expand Down Expand Up @@ -620,9 +621,11 @@ governing permissions and limitations under the License.
}
:host(.focus-visible) {
box-shadow: none;
outline: none;
}
:host(:focus-visible) {
box-shadow: none;
outline: none;
}
:host(.focus-visible):after {
box-shadow: 0 0 0
Expand Down
2 changes: 1 addition & 1 deletion packages/action-group/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"@spectrum-web-components/reactive-controllers": "^0.38.0"
},
"devDependencies": {
"@spectrum-css/actiongroup": "^3.0.61"
"@spectrum-css/actiongroup": "^4.0.7"
},
"types": "./src/index.d.ts",
"customElements": "custom-elements.json",
Expand Down
6 changes: 6 additions & 0 deletions packages/action-group/src/spectrum-action-group.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ governing permissions and limitations under the License.
::slotted(*) {
flex-shrink: 0;
}
::slotted(.focus-visible) {
z-index: 3;
}
::slotted(:focus-visible) {
z-index: 3;
}
:host(:not([vertical]):not([compact])) ::slotted(*) {
flex-shrink: 0;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/action-group/src/spectrum-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ const config = {
{
find: [
builder.class('spectrum-ActionGroup-item'),
builder.class('focus-ring'),
builder.pseudoClass('focus-visible'),
],
replace: [
{
Expand Down
2 changes: 1 addition & 1 deletion packages/action-menu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"@spectrum-web-components/shared": "^0.38.0"
},
"devDependencies": {
"@spectrum-css/actionmenu": "^4.0.50"
"@spectrum-css/actionmenu": "^5.0.0"
},
"types": "./src/index.d.ts",
"customElements": "custom-elements.json",
Expand Down
2 changes: 1 addition & 1 deletion packages/asset/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"@spectrum-web-components/base": "^0.38.0"
},
"devDependencies": {
"@spectrum-css/asset": "^3.0.47"
"@spectrum-css/asset": "^3.0.48"
},
"types": "./src/index.d.ts",
"customElements": "custom-elements.json",
Expand Down
2 changes: 1 addition & 1 deletion packages/avatar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"@spectrum-web-components/shared": "^0.38.0"
},
"devDependencies": {
"@spectrum-css/avatar": "^6.0.44"
"@spectrum-css/avatar": "^6.0.52"
},
"types": "./src/index.d.ts",
"customElements": "custom-elements.json",
Expand Down
2 changes: 1 addition & 1 deletion packages/badge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"@spectrum-web-components/shared": "^0.38.0"
},
"devDependencies": {
"@spectrum-css/badge": "^3.1.0"
"@spectrum-css/badge": "^3.1.8"
},
"types": "./src/index.d.ts",
"customElements": "custom-elements.json",
Expand Down
2 changes: 1 addition & 1 deletion packages/button-group/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"@spectrum-web-components/button": "^0.38.0"
},
"devDependencies": {
"@spectrum-css/buttongroup": "6.1.4"
"@spectrum-css/buttongroup": "^6.1.6"
},
"types": "./src/index.d.ts",
"customElements": "custom-elements.json",
Expand Down
2 changes: 1 addition & 1 deletion packages/button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"@spectrum-web-components/shared": "^0.38.0"
},
"devDependencies": {
"@spectrum-css/button": "^10.1.14"
"@spectrum-css/button": "^11.0.8"
},
"types": "./src/index.d.ts",
"customElements": "custom-elements.json",
Expand Down
2 changes: 2 additions & 0 deletions packages/button/src/spectrum-button.css
Original file line number Diff line number Diff line change
Expand Up @@ -372,9 +372,11 @@ governing permissions and limitations under the License.
}
:host(.focus-visible) {
box-shadow: none;
outline: none;
}
:host(:focus-visible) {
box-shadow: none;
outline: none;
}
:host(.focus-visible):after {
box-shadow: 0 0 0
Expand Down
2 changes: 1 addition & 1 deletion packages/card/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"@spectrum-web-components/styles": "^0.38.0"
},
"devDependencies": {
"@spectrum-css/card": "^6.0.9"
"@spectrum-css/card": "^6.0.18"
},
"types": "./src/index.d.ts",
"customElements": "custom-elements.json",
Expand Down
2 changes: 1 addition & 1 deletion packages/checkbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"@spectrum-web-components/shared": "^0.38.0"
},
"devDependencies": {
"@spectrum-css/checkbox": "^7.0.6"
"@spectrum-css/checkbox": "^7.0.11"
},
"types": "./src/index.d.ts",
"customElements": "custom-elements.json",
Expand Down
12 changes: 6 additions & 6 deletions packages/checkbox/src/spectrum-checkbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,8 @@ governing permissions and limitations under the License.
:host([indeterminate]) #input:checked + #box #checkmark {
display: none;
}
:host([indeterminate]) #box .spectrum-Icon#partialCheckmark,
:host([indeterminate]) #input:checked + #box .spectrum-Icon#partialCheckmark {
:host([indeterminate]) #box #partialCheckmark,
:host([indeterminate]) #input:checked + #box #partialCheckmark {
display: block;
opacity: 1;
transform: scale(1);
Expand Down Expand Up @@ -479,8 +479,8 @@ governing permissions and limitations under the License.
)
);
}
:host([emphasized]).focus-visible #box:before,
:host([emphasized]).focus-visible #input:checked + #box:before {
:host([emphasized].focus-visible) #box:before,
:host([emphasized].focus-visible) #input:checked + #box:before {
border-color: var(
--highcontrast-checkbox-color-focus,
var(
Expand All @@ -489,8 +489,8 @@ governing permissions and limitations under the License.
)
);
}
:host([emphasized]):focus-visible #box:before,
:host([emphasized]):focus-visible #input:checked + #box:before {
:host([emphasized]:focus-visible) #box:before,
:host([emphasized]:focus-visible) #input:checked + #box:before {
border-color: var(
--highcontrast-checkbox-color-focus,
var(
Expand Down
2 changes: 1 addition & 1 deletion packages/clear-button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@spectrum-web-components/base": "^0.38.0"
},
"devDependencies": {
"@spectrum-css/clearbutton": "^5.0.4"
"@spectrum-css/clearbutton": "^5.0.5"
},
"types": "./src/index.d.ts",
"customElements": "custom-elements.json",
Expand Down
12 changes: 6 additions & 6 deletions packages/clear-button/src/spectrum-clear-button.css
Original file line number Diff line number Diff line change
Expand Up @@ -166,28 +166,28 @@ governing permissions and limitations under the License.
var(--spectrum-clear-button-background-color-down)
);
}
:host.focus-visible,
:host(.focus-visible),
:host:focus-within {
color: var(
--mod-clear-button-icon-color-key-focus,
var(--spectrum-clear-button-icon-color-key-focus)
);
}
:host:focus-visible,
:host(:focus-visible),
:host:focus-within {
color: var(
--mod-clear-button-icon-color-key-focus,
var(--spectrum-clear-button-icon-color-key-focus)
);
}
:host.focus-visible .fill,
:host(.focus-visible) .fill,
:host:focus-within .fill {
background-color: var(
--mod-clear-button-background-color-key-focus,
var(--spectrum-clear-button-background-color-key-focus)
);
}
:host:focus-visible .fill,
:host(:focus-visible) .fill,
:host:focus-within .fill {
background-color: var(
--mod-clear-button-background-color-key-focus,
Expand All @@ -206,10 +206,10 @@ governing permissions and limitations under the License.
inline-size: 100%;
justify-content: center;
}
:host([variant='overBackground']).focus-visible {
:host([variant='overBackground'].focus-visible) {
outline: none;
}
:host([variant='overBackground']):focus-visible {
:host([variant='overBackground']:focus-visible) {
outline: none;
}
@media (forced-colors: active) {
Expand Down
2 changes: 1 addition & 1 deletion packages/close-button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@spectrum-web-components/base": "^0.38.0"
},
"devDependencies": {
"@spectrum-css/closebutton": "^3.1.14"
"@spectrum-css/closebutton": "^4.0.7"
},
"types": "./src/index.d.ts",
"customElements": "custom-elements.json",
Expand Down
36 changes: 2 additions & 34 deletions packages/close-button/src/spectrum-close-button.css
Original file line number Diff line number Diff line change
Expand Up @@ -172,28 +172,11 @@ governing permissions and limitations under the License.
--highcontrast-closebutton-focus-indicator-color: ButtonText;
}
:host(.focus-visible):after {
border-radius: 100%;
box-shadow: 0 0 0
var(
--mod-closebutton-focus-indicator-thickness,
var(--spectrum-closebutton-focus-indicator-thickness)
)
var(
--highcontrast-closebutton-focus-indicator-color,
var(
--mod-closebutton-focus-indicator-color,
var(--spectrum-closebutton-focus-indicator-color)
)
);
content: '';
display: block;
forced-color-adjust: none;
inset: 0;
margin: var(
--mod-closebutton-focus-indicator-gap,
var(--spectrum-closebutton-focus-indicator-gap)
);
position: absolute;
transition: opacity
var(
--mod-closebutton-animation-duration,
Expand All @@ -208,28 +191,11 @@ governing permissions and limitations under the License.
ease-out;
}
:host(:focus-visible):after {
border-radius: 100%;
box-shadow: 0 0 0
var(
--mod-closebutton-focus-indicator-thickness,
var(--spectrum-closebutton-focus-indicator-thickness)
)
var(
--highcontrast-closebutton-focus-indicator-color,
var(
--mod-closebutton-focus-indicator-color,
var(--spectrum-closebutton-focus-indicator-color)
)
);
content: '';
display: block;
forced-color-adjust: none;
inset: 0;
margin: var(
--mod-closebutton-focus-indicator-gap,
var(--spectrum-closebutton-focus-indicator-gap)
);
position: absolute;
transition: opacity
var(
--mod-closebutton-animation-duration,
Expand Down Expand Up @@ -307,9 +273,11 @@ governing permissions and limitations under the License.
}
:host(.focus-visible) {
box-shadow: none;
outline: none;
}
:host(:focus-visible) {
box-shadow: none;
outline: none;
}
:host(.focus-visible):after {
box-shadow: 0 0 0
Expand Down
2 changes: 1 addition & 1 deletion packages/coachmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"@spectrum-web-components/base": "^0.38.0"
},
"devDependencies": {
"@spectrum-css/coachmark": "^5.0.58"
"@spectrum-css/coachmark": "^5.0.67"
},
"types": "./src/index.d.ts",
"customElements": "custom-elements.json",
Expand Down
2 changes: 1 addition & 1 deletion packages/color-area/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"@spectrum-web-components/reactive-controllers": "^0.38.0"
},
"devDependencies": {
"@spectrum-css/colorarea": "^4.0.33"
"@spectrum-css/colorarea": "^4.0.41"
},
"types": "./src/index.d.ts",
"customElements": "custom-elements.json",
Expand Down
8 changes: 4 additions & 4 deletions packages/color-handle/src/spectrum-color-handle.css
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ governing permissions and limitations under the License.
);
position: absolute;
}
:host([focused]),
:host.focus-visible {
:host(.focus-visible),
:host([focused]) {
block-size: var(
--mod-colorhandle-focused-size,
var(--spectrum-colorhandle-focused-size)
Expand All @@ -185,8 +185,8 @@ governing permissions and limitations under the License.
);
outline: none;
}
:host([focused]),
:host:focus-visible {
:host(:focus-visible),
:host([focused]) {
block-size: var(
--mod-colorhandle-focused-size,
var(--spectrum-colorhandle-focused-size)
Expand Down
2 changes: 1 addition & 1 deletion packages/color-loupe/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"@spectrum-web-components/opacity-checkerboard": "^0.38.0"
},
"devDependencies": {
"@spectrum-css/colorloupe": "^4.1.17"
"@spectrum-css/colorloupe": "^4.1.18"
},
"types": "./src/index.d.ts",
"customElements": "custom-elements.json",
Expand Down
2 changes: 1 addition & 1 deletion packages/color-slider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"@spectrum-web-components/shared": "^0.38.0"
},
"devDependencies": {
"@spectrum-css/colorslider": "^5.0.0"
"@spectrum-css/colorslider": "^5.0.4"
},
"types": "./src/index.d.ts",
"customElements": "custom-elements.json",
Expand Down
Loading
Loading