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: update css to latest foundations version #5013

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
"@webcomponents/webcomponentsjs": "^2.8.0",
"alex": "^11.0.1",
"cem-plugin-module-file-extensions": "^0.0.5",
"chalk": "^5.0.1",
"colors": "^1.4.0",
"chromatic": "^11.20.0",
"chromedriver": "^130.0.1",
"common-tags": "^1.8.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/accordion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"@spectrum-web-components/shared": "^1.0.1"
},
"devDependencies": {
"@spectrum-css/accordion": "^6.0.0-s2-foundations.16"
"@spectrum-css/accordion": "^6.0.0-s2-foundations.17"
},
"types": "./src/index.d.ts",
"customElements": "custom-elements.json",
Expand Down
2 changes: 1 addition & 1 deletion packages/accordion/src/accordion-item-overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
Expand Down
326 changes: 1 addition & 325 deletions packages/accordion/src/accordion-overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This file is licensed to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. You may obtain a copy
of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
OF ANY KIND, either express or implied. See the License for the specific language
Expand All @@ -12,329 +12,5 @@

/* THIS FILE IS MACHINE GENERATED. DO NOT EDIT */
:host {
--spectrum-accordion-item-width: var(--system-accordion-item-width);
--spectrum-accordion-disclosure-indicator-to-text-space: var(
--system-accordion-disclosure-indicator-to-text-space
);
--spectrum-accordion-edge-to-disclosure-indicator-space: var(
--system-accordion-edge-to-disclosure-indicator-space
);
--spectrum-accordion-edge-to-text-space: var(
--system-accordion-edge-to-text-space
);
--spectrum-accordion-focus-indicator-gap: var(
--system-accordion-focus-indicator-gap
);
--spectrum-accordion-focus-indicator-thickness: var(
--system-accordion-focus-indicator-thickness
);
--spectrum-accordion-corner-radius: var(--system-accordion-corner-radius);
--spectrum-accordion-item-content-area-top-to-content: var(
--system-accordion-item-content-area-top-to-content
);
--spectrum-accordion-item-content-area-bottom-to-content: var(
--system-accordion-item-content-area-bottom-to-content
);
--spectrum-accordion-item-header-font: var(
--system-accordion-item-header-font
);
--spectrum-accordion-item-header-font-weight: var(
--system-accordion-item-header-font-weight
);
--spectrum-accordion-item-header-font-style: var(
--system-accordion-item-header-font-style
);
--spectrum-accordion-item-header-line-height: var(
--system-accordion-item-header-line-height
);
--spectrum-accordion-item-content-font: var(
--system-accordion-item-content-font
);
--spectrum-accordion-item-content-font-weight: var(
--system-accordion-item-content-font-weight
);
--spectrum-accordion-item-content-font-style: var(
--system-accordion-item-content-font-style
);
--spectrum-accordion-item-content-line-height: var(
--system-accordion-item-content-line-height
);
--spectrum-accordion-background-color-default: var(
--system-accordion-background-color-default
);
--spectrum-accordion-background-color-hover: var(
--system-accordion-background-color-hover
);
--spectrum-accordion-background-color-down: var(
--system-accordion-background-color-down
);
--spectrum-accordion-background-color-key-focus: var(
--system-accordion-background-color-key-focus
);
--spectrum-accordion-item-header-color-default: var(
--system-accordion-item-header-color-default
);
--spectrum-accordion-item-header-color-hover: var(
--system-accordion-item-header-color-hover
);
--spectrum-accordion-item-header-color-down: var(
--system-accordion-item-header-color-down
);
--spectrum-accordion-item-header-color-key-focus: var(
--system-accordion-item-header-color-key-focus
);
--spectrum-accordion-item-header-disabled-color: var(
--system-accordion-item-header-disabled-color
);
--spectrum-accordion-item-content-disabled-color: var(
--system-accordion-item-content-disabled-color
);
--spectrum-accordion-item-content-color: var(
--system-accordion-item-content-color
);
--spectrum-accordion-focus-indicator-color: var(
--system-accordion-focus-indicator-color
);
--spectrum-accordion-divider-color: var(--system-accordion-divider-color);
--spectrum-accordion-item-header-line-height-cjk: var(
--system-accordion-item-header-line-height-cjk
);
--spectrum-accordion-item-content-line-height-cjk: var(
--system-accordion-item-content-line-height-cjk
);
--spectrum-accordion-item-height: var(--system-accordion-item-height);
--spectrum-accordion-disclosure-indicator-height: var(
--system-accordion-disclosure-indicator-height
);
--spectrum-accordion-component-edge-to-text: var(
--system-accordion-component-edge-to-text
);
--spectrum-accordion-item-header-font-size: var(
--system-accordion-item-header-font-size
);
--spectrum-accordion-item-content-font-size: var(
--system-accordion-item-content-font-size
);
--spectrum-accordion-item-header-top-to-text-space: var(
--system-accordion-item-header-top-to-text-space
);
--spectrum-accordion-item-header-bottom-to-text-space: var(
--system-accordion-item-header-bottom-to-text-space
);
}

:host([size='s']) {
--spectrum-accordion-item-height: var(
--system-accordion-size-s-item-height
);
--spectrum-accordion-disclosure-indicator-height: var(
--system-accordion-size-s-disclosure-indicator-height
);
--spectrum-accordion-component-edge-to-text: var(
--system-accordion-size-s-component-edge-to-text
);
--spectrum-accordion-item-header-font-size: var(
--system-accordion-size-s-item-header-font-size
);
--spectrum-accordion-item-content-font-size: var(
--system-accordion-size-s-item-content-font-size
);
--spectrum-accordion-item-header-top-to-text-space: var(
--system-accordion-size-s-item-header-top-to-text-space
);
--spectrum-accordion-item-header-bottom-to-text-space: var(
--system-accordion-size-s-item-header-bottom-to-text-space
);
}

.spectrum-Accordion--sizeM {
--spectrum-accordion-item-height: var(
--system-accordion-size-m-item-height
);
--spectrum-accordion-disclosure-indicator-height: var(
--system-accordion-size-m-disclosure-indicator-height
);
--spectrum-accordion-component-edge-to-text: var(
--system-accordion-size-m-component-edge-to-text
);
--spectrum-accordion-item-header-font-size: var(
--system-accordion-size-m-item-header-font-size
);
--spectrum-accordion-item-content-font-size: var(
--system-accordion-size-m-item-content-font-size
);
--spectrum-accordion-item-header-top-to-text-space: var(
--system-accordion-size-m-item-header-top-to-text-space
);
--spectrum-accordion-item-header-bottom-to-text-space: var(
--system-accordion-size-m-item-header-bottom-to-text-space
);
}

:host([size='l']) {
--spectrum-accordion-item-height: var(
--system-accordion-size-l-item-height
);
--spectrum-accordion-disclosure-indicator-height: var(
--system-accordion-size-l-disclosure-indicator-height
);
--spectrum-accordion-component-edge-to-text: var(
--system-accordion-size-l-component-edge-to-text
);
--spectrum-accordion-item-header-font-size: var(
--system-accordion-size-l-item-header-font-size
);
--spectrum-accordion-item-content-font-size: var(
--system-accordion-size-l-item-content-font-size
);
--spectrum-accordion-item-header-top-to-text-space: var(
--system-accordion-size-l-item-header-top-to-text-space
);
--spectrum-accordion-item-header-bottom-to-text-space: var(
--system-accordion-size-l-item-header-bottom-to-text-space
);
}

:host([size='xl']) {
--spectrum-accordion-item-height: var(
--system-accordion-size-xl-item-height
);
--spectrum-accordion-disclosure-indicator-height: var(
--system-accordion-size-xl-disclosure-indicator-height
);
--spectrum-accordion-component-edge-to-text: var(
--system-accordion-size-xl-component-edge-to-text
);
--spectrum-accordion-item-header-font-size: var(
--system-accordion-size-xl-item-header-font-size
);
--spectrum-accordion-item-content-font-size: var(
--system-accordion-size-xl-item-content-font-size
);
--spectrum-accordion-item-header-top-to-text-space: var(
--system-accordion-size-xl-item-header-top-to-text-space
);
--spectrum-accordion-item-header-bottom-to-text-space: var(
--system-accordion-size-xl-item-header-bottom-to-text-space
);
}

:host([density='compact'][size='s']) {
--spectrum-accordion-item-height: var(
--system-accordion-compact-size-s-item-height
);
--spectrum-accordion-item-header-top-to-text-space: var(
--system-accordion-compact-size-s-item-header-top-to-text-space
);
--spectrum-accordion-item-header-bottom-to-text-space: var(
--system-accordion-compact-size-s-item-header-bottom-to-text-space
);
}

:host([density='compact']) {
--spectrum-accordion-item-height: var(
--system-accordion-compact-item-height
);
--spectrum-accordion-item-header-top-to-text-space: var(
--system-accordion-compact-item-header-top-to-text-space
);
--spectrum-accordion-item-header-bottom-to-text-space: var(
--system-accordion-compact-item-header-bottom-to-text-space
);
}

:host([density='compact']) .spectrum-Accordion--sizeM {
--spectrum-accordion-item-height: var(
--system-accordion-compact-size-m-item-height
);
--spectrum-accordion-item-header-top-to-text-space: var(
--system-accordion-compact-size-m-item-header-top-to-text-space
);
--spectrum-accordion-item-header-bottom-to-text-space: var(
--system-accordion-compact-size-m-item-header-bottom-to-text-space
);
}

:host([density='compact'][size='l']) {
--spectrum-accordion-item-height: var(
--system-accordion-compact-size-l-item-height
);
--spectrum-accordion-item-header-top-to-text-space: var(
--system-accordion-compact-size-l-item-header-top-to-text-space
);
--spectrum-accordion-item-header-bottom-to-text-space: var(
--system-accordion-compact-size-l-item-header-bottom-to-text-space
);
}

:host([density='compact'][size='xl']) {
--spectrum-accordion-item-height: var(
--system-accordion-compact-size-xl-item-height
);
--spectrum-accordion-item-header-top-to-text-space: var(
--system-accordion-compact-size-xl-item-header-top-to-text-space
);
--spectrum-accordion-item-header-bottom-to-text-space: var(
--system-accordion-compact-size-xl-item-header-bottom-to-text-space
);
}

:host([density='spacious'][size='s']) {
--spectrum-accordion-item-header-line-height: var(
--system-accordion-spacious-size-s-item-header-line-height
);
--spectrum-accordion-item-header-top-to-text-space: var(
--system-accordion-spacious-size-s-item-header-top-to-text-space
);
--spectrum-accordion-item-header-bottom-to-text-space: var(
--system-accordion-spacious-size-s-item-header-bottom-to-text-space
);
}

:host([density='spacious']) {
--spectrum-accordion-item-header-line-height: var(
--system-accordion-spacious-item-header-line-height
);
--spectrum-accordion-item-header-top-to-text-space: var(
--system-accordion-spacious-item-header-top-to-text-space
);
--spectrum-accordion-item-header-bottom-to-text-space: var(
--system-accordion-spacious-item-header-bottom-to-text-space
);
}

:host([density='spacious']) .spectrum-Accordion--sizeM {
--spectrum-accordion-item-header-line-height: var(
--system-accordion-spacious-size-m-item-header-line-height
);
--spectrum-accordion-item-header-top-to-text-space: var(
--system-accordion-spacious-size-m-item-header-top-to-text-space
);
--spectrum-accordion-item-header-bottom-to-text-space: var(
--system-accordion-spacious-size-m-item-header-bottom-to-text-space
);
}

:host([density='spacious'][size='l']) {
--spectrum-accordion-item-header-line-height: var(
--system-accordion-spacious-size-l-item-header-line-height
);
--spectrum-accordion-item-header-top-to-text-space: var(
--system-accordion-spacious-size-l-item-header-top-to-text-space
);
--spectrum-accordion-item-header-bottom-to-text-space: var(
--system-accordion-spacious-size-l-item-header-bottom-to-text-space
);
}

:host([density='spacious'][size='xl']) {
--spectrum-accordion-item-header-line-height: var(
--system-accordion-spacious-size-xl-item-header-line-height
);
--spectrum-accordion-item-header-top-to-text-space: var(
--system-accordion-spacious-size-xl-item-header-top-to-text-space
);
--spectrum-accordion-item-header-bottom-to-text-space: var(
--system-accordion-spacious-size-xl-item-header-bottom-to-text-space
);
}
18 changes: 9 additions & 9 deletions packages/accordion/src/spectrum-accordion-item.css
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,15 @@ governing permissions and limitations under the License.
);
}

@media (forced-colors: active) {
#header:after {
forced-color-adjust: none;
content: '';
position: absolute;
inset-inline-start: 0;
}
}

:host([open]) > #heading > .iconContainer > .indicator,
:host([open]) > .iconContainer > .indicator {
transform: rotate(90deg);
Expand All @@ -328,12 +337,3 @@ governing permissions and limitations under the License.
:host([disabled]) #header {
cursor: default;
}

@media (forced-colors: active) {
#header:after {
forced-color-adjust: none;
content: '';
position: absolute;
inset-inline-start: 0;
}
}
Loading
Loading