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

[DO NOT MERGE]: S2 Preview #4766

Draft
wants to merge 231 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
231 commits
Select commit Hold shift + click to select a range
2983a36
refactor(theme): adds new system attribute and deprecates theme attri…
jnjosh Mar 13, 2024
956106f
chore(theme): made changes on theme attribute
Mar 21, 2024
407efbf
chore: reverted THEME Key to support migrations
Mar 21, 2024
f7c2486
Merge branch 'main' of https://github.com/adobe/spectrum-web-componen…
Apr 1, 2024
664d2c2
chore: theme registrated hard break
Apr 1, 2024
9714b15
refactor(theme): adds new system attribute and deprecates theme attri…
jnjosh Mar 13, 2024
4830eed
chore(theme): made changes on theme attribute
Mar 21, 2024
e69bb48
chore: reverted THEME Key to support migrations
Mar 21, 2024
dc00e12
chore: theme registrated hard break
Apr 1, 2024
a20edc2
Merge branch 'jnjosh/theming-systems' of https://github.com/adobe/spe…
Apr 1, 2024
e159afc
chore(theme): updated theme property to system
Apr 1, 2024
576b603
chore(theme): updated theme to system in sp-theme in layout
Apr 1, 2024
4ffc9fb
chore(theme): updated config for VRT
Apr 1, 2024
bfa82d9
chore(theme): updated config for VRT from theme to system
Apr 1, 2024
20595ee
chore: update theme property to system
Apr 2, 2024
6fe7a68
fix: added spectrum system variant
Apr 2, 2024
2490dd5
chore: updated theme for deprecation against system in theme files
Apr 3, 2024
8830483
chore: updated config to support system
Apr 3, 2024
be29dcc
chore: updated config yml
Apr 3, 2024
1a4624e
chore: updated config yml
Apr 3, 2024
4ea39f0
chore: updated config yml
Apr 3, 2024
36bf032
chore: undo system changes in stories
Apr 3, 2024
771a7be
chore: updated runner utils
Apr 3, 2024
c3625ae
chore: review to run with theme
Apr 3, 2024
e9da66d
chore(theme): updated command-line arguments to ue system instea do f…
Apr 3, 2024
6c413b0
chore(theme): updated command-line arguments to ue system instea do f…
Apr 3, 2024
d26d278
chore(theme): updated and cleaned up reduntant theme definitions with…
Apr 4, 2024
11a8e6d
chore: added theme fallback to the storydecotrator render
Apr 4, 2024
86e1fec
chore: added system flag in the create review site job in CI
Apr 4, 2024
32da346
chore: added system flag in the create review site job in CI
Apr 4, 2024
12fab6f
chore: updated config to include system
Apr 4, 2024
5033850
chore: removed classic from system variant
Apr 4, 2024
495df4c
chore: removed classic from system variant
Apr 4, 2024
f080dce
chore: added system in parameters in config
Apr 4, 2024
2c64fab
chore: added system in parameters in config
Apr 4, 2024
8266acf
chore: added system in parameters in config
Apr 4, 2024
947e8d6
chore: added system in parameters in config
Apr 4, 2024
9b7a4be
chore: added system in parameters in config
Apr 4, 2024
9d81c57
chore: added theme in parameters in config
Apr 4, 2024
278790d
chore: reverted to theme in currentStyles
Apr 9, 2024
87a8585
chore: update styles for both system/theme changes
TarunAdobe Apr 10, 2024
3e80cf4
chore: fixed updating theme when system value is not there
TarunAdobe Apr 10, 2024
2aaaf1d
chore: added t theme coverage tests
TarunAdobe Apr 10, 2024
4f20e3b
chore: updated doc on prperty theme
Apr 24, 2024
1471312
chore: updated golden image cache
Apr 24, 2024
ac47ddc
chore: updated to spectrum-two
Apr 24, 2024
9a217fd
chore: updated golden image cache
Apr 24, 2024
d056a0d
chore: resolved merged conflicts
Apr 24, 2024
f189220
chore: check added to update system for theme only attribute during d…
Apr 25, 2024
a6d4d94
chore: rebased to systems pr
TarunAdobe Apr 26, 2024
78a0664
feat: added s2 theme to storyDecorator
TarunAdobe Apr 4, 2024
a2cb7a4
chore: added s2 to documentation site
TarunAdobe Apr 4, 2024
94e1281
chore: added spectrum-two to the visual testing pipeline
TarunAdobe Apr 4, 2024
06df4d4
chore: added s2 in web-test-util
TarunAdobe Apr 4, 2024
6074ed4
chore: added s2 theme to vrts
TarunAdobe Apr 5, 2024
66c38a9
chore: testing if vrts run
TarunAdobe Apr 5, 2024
f46ed85
chore: added spectrum-two-tokens-config in package.json
TarunAdobe Apr 8, 2024
0e0c9a7
chore: removed extra console log and updated tokens
TarunAdobe Apr 8, 2024
6fc0009
chore: trying s2 as a theme in vrt instead of spectrum-two
TarunAdobe Apr 8, 2024
fccda29
chore: updated config
TarunAdobe Apr 8, 2024
4f8263f
chore: testing a hacky fix for s2 vrts
TarunAdobe Apr 8, 2024
2600a89
chore: updated button and fieldlable to s2
TarunAdobe Apr 8, 2024
19c76fb
chore: added core.ts to import theme helpers inside spectrum-two
Apr 10, 2024
7434a55
chore: spectrum-two core export
Apr 10, 2024
7d9080e
chore: testing if updating the global vars fixes the build
TarunAdobe Apr 10, 2024
dd46a75
chore: revert back css updates for button and field-label
TarunAdobe Apr 22, 2024
294677b
chore(styles): reapply some poorly cached build output (#4232)
Apr 2, 2024
341bfa2
performance: added memory tests in packages (#4228)
Rajdeepc Apr 2, 2024
6a9e52e
fix(coachmark): add "step-count" slot for custom/internationalized pa…
Rajdeepc Apr 2, 2024
2a78be2
chore: bump the commitlint-ecosystem group with 2 updates (#4219)
dependabot[bot] Apr 2, 2024
b43662c
test: update benchmarking to configure "end" as "updateComplete" or "…
Westbrook Apr 1, 2024
7d76eed
fix(shared): ensure the "updateComplete" in Focusable is stable
Westbrook Apr 1, 2024
6aa150c
chore: release new versions #publish
Westbrook Apr 2, 2024
a513484
chore: bump webpack-dev-server from 5.0.2 to 5.0.4
dependabot[bot] Apr 2, 2024
dcfeee5
chore: bump markdown-it from 14.0.0 to 14.1.0
dependabot[bot] Apr 2, 2024
72a60c5
chore: bump fs-extra from 11.1.1 to 11.2.0
dependabot[bot] Apr 2, 2024
22cf1f5
chore(picker): update event bind timing
Westbrook Apr 3, 2024
bf238aa
chore: release new versions #publish
Westbrook Apr 3, 2024
cb38bb0
fix(color-area): providing x and y attributes renders color handle co…
blunteshwar Apr 4, 2024
a4e109c
chore(menu): remove deprecated CSS file (#4249)
Rocss Apr 9, 2024
471d85e
fix(combobox): correct package.json listings
Westbrook Apr 5, 2024
bb06fa1
chore: bump webpack from 5.90.3 to 5.91.0
dependabot[bot] Apr 10, 2024
d03f0aa
chore: bump prettier-plugin-package from 1.3.0 to 1.4.0
dependabot[bot] Apr 10, 2024
907773f
chore: bump @types/react from 18.2.15 to 18.2.75
dependabot[bot] Apr 10, 2024
98c8c4a
chore: bump protobufjs from 7.2.4 to 7.2.6
dependabot[bot] Apr 10, 2024
4def188
chore: bump @11ty/eleventy in the eleventy-ecosystem group
dependabot[bot] Apr 16, 2024
20ca375
chore: bump tar-stream from 3.1.6 to 3.1.7
dependabot[bot] Apr 16, 2024
628b002
chore: updated golden image hash
TarunAdobe Apr 23, 2024
3f6195b
chore: updated golden image hash
TarunAdobe Apr 23, 2024
c440d0a
chore: added sideeffectful registration of theme and removed lightest…
TarunAdobe Apr 24, 2024
a20402c
chore: Configure Renovate (#4248)
renovate[bot] Apr 22, 2024
d2fe74f
chore: update dependency rollup to v4.16.2 (#4288)
renovate[bot] Apr 23, 2024
503d565
chore: bump @11ty/eleventy in the eleventy-ecosystem group (#4291)
dependabot[bot] Apr 23, 2024
e68545f
chore: bump the commitlint-ecosystem group with 2 updates (#4290)
dependabot[bot] Apr 23, 2024
593c13b
chore: update chromedriver (#4293)
Apr 24, 2024
df2d9af
chore: use latest playwright (#4295)
Apr 24, 2024
d5efe6e
chore: updated golden image hash
TarunAdobe Apr 25, 2024
6c45b9b
chore: fixed merge conflicts
TarunAdobe Apr 26, 2024
408ed92
Merge branch 'main' into swc-s2-styles
TarunAdobe Apr 26, 2024
0408abb
Merge branch 'jnjosh/theming-systems' into swc-s2-styles
TarunAdobe Apr 26, 2024
1482230
chore: fixed merge conflicts
TarunAdobe Apr 26, 2024
84b1d49
chore: use system instead of theme in s2
TarunAdobe Apr 26, 2024
f4ac74b
chore: externalised process spectrum script and update golden image hash
TarunAdobe Apr 26, 2024
e239f2f
chore: merged main
TarunAdobe Apr 26, 2024
3cb248b
chore: normalized spectrum-two var naming usage
TarunAdobe Apr 26, 2024
f18ca66
chore: updated golden image hash
TarunAdobe Apr 26, 2024
f02fbb4
chore: testing something
TarunAdobe Apr 26, 2024
18ba2e0
chore: freshly processed tokens after cleaning everything
TarunAdobe Apr 26, 2024
1b0940f
chore: fixed the generate-tokens script
TarunAdobe Apr 29, 2024
08a787f
chore: updated golden image hash
TarunAdobe Apr 29, 2024
2ee10b4
chore: updated golden image hash
TarunAdobe Apr 29, 2024
645f3ca
chore: normalized the classic theme to spectrum
TarunAdobe Apr 30, 2024
c3e556a
chore: updating baseline for spectrum
TarunAdobe May 1, 2024
3170781
chore: merge main
TarunAdobe May 2, 2024
d8f7d27
chore: updated golden image hash
TarunAdobe May 2, 2024
a25b548
chore: updated golden image hash
TarunAdobe May 2, 2024
4cfc468
chore: removed lightest and darkest theme for spectrum-two
TarunAdobe May 2, 2024
0dc716a
chore: fixed the ci config
TarunAdobe May 2, 2024
4c5799f
chore: merged main
TarunAdobe May 3, 2024
49d9f9d
chore: updated golden image hash
TarunAdobe May 3, 2024
f704042
chore: fixed broken sidenav for vrts site
TarunAdobe May 3, 2024
1d004c6
Merge branch 'main' into swc-s2-styles
TarunAdobe May 3, 2024
a2f1ac1
chore: added devmode warning for S2 theme
TarunAdobe May 7, 2024
3dee34b
Merge branch 'main' into swc-s2-styles
TarunAdobe May 7, 2024
d98d1be
chore: show devmode warning on using s2 theme only in devmode
TarunAdobe May 7, 2024
a32f837
chore: added devmode tests for code coverage
TarunAdobe May 7, 2024
b8eda21
chore: updated devmode tests for theme
TarunAdobe May 8, 2024
2c5c4a6
Merge branch 'main' into swc-s2-styles
TarunAdobe May 8, 2024
623ce7b
chore: updated tokens package
TarunAdobe May 10, 2024
a9a9035
chore: updated the process-spectrum task to process the legacy overrides
TarunAdobe May 13, 2024
401c538
chore: fixed conflicts and merged main
TarunAdobe May 13, 2024
6e06190
chore: fixed merge conflicts and merged main
TarunAdobe May 15, 2024
7a85391
Merge branch 'main' into testing-css-bridge-for-s2
TarunAdobe May 15, 2024
231cb30
chore: reverted for testing bridge tokens remapping
May 16, 2024
b850f87
chore: removed action-button updates
TarunAdobe May 16, 2024
52f3b70
Merge branch 'main' into testing-css-bridge-for-s2
TarunAdobe May 17, 2024
69fd127
chore: updated golden image hash
TarunAdobe May 17, 2024
bd86cb1
chore: merge main fixed merge conflict
TarunAdobe Jun 10, 2024
c7e8fd5
chore: fixed global vars
TarunAdobe Jun 10, 2024
6112d0b
chore: rename legacy to system overrides
TarunAdobe Jun 10, 2024
ac468c4
chore: testing foundation tokens for components
TarunAdobe Jun 13, 2024
440cd4e
chore: added foundation version
Jun 14, 2024
621ce65
chore: s2 foundation release
TarunAdobe Jun 27, 2024
4a2cb1a
chore: updated s2 foundations version
TarunAdobe Jun 28, 2024
0a508bc
chore: corrected ui-icons foundations version
TarunAdobe Jun 28, 2024
edbebb0
chore: added bridges for all components
TarunAdobe Jun 28, 2024
3c52085
chore: removed overrides from accordion
TarunAdobe Jun 28, 2024
5caeb2a
chore: merge main
TarunAdobe Jul 8, 2024
d60782a
chore: fresh yarn after merging main
TarunAdobe Jul 8, 2024
174b26a
chore: updated foundations to 0.6
TarunAdobe Jul 10, 2024
66c73aa
Merge branch 'main' into testing-css-bridge-for-s2
TarunAdobe Jul 10, 2024
e730697
chore: updated wrapper to take bridge tokens from foundations
TarunAdobe Jul 10, 2024
14888d4
chore: fixed dialog css for foundations release
TarunAdobe Jul 10, 2024
9104065
chore: updated to foundations 8
TarunAdobe Jul 15, 2024
26a7d0b
chore: updated scripts and foundations to .9
TarunAdobe Jul 17, 2024
c8ffae1
chore: downgraded lightning css
TarunAdobe Jul 17, 2024
852b154
chore: setup errorrecovery to warning in lightning css
TarunAdobe Jul 17, 2024
2fb8263
chore: updated process-spectrum
TarunAdobe Jul 18, 2024
8e60f5f
chore: upgrade typography to foundations
TarunAdobe Jul 18, 2024
b0c7357
chore: updated CSS for spectrum-overrides
Jul 18, 2024
4c7d8a1
chore: updated to index-base.css
Jul 18, 2024
19f9450
chore: added missing system-overrides imports
Jul 18, 2024
199ec2e
chore: added missing system-overrides imports
Jul 18, 2024
5b8d05e
chore: updated css processing script
TarunAdobe Jul 19, 2024
8e7b134
chore: fixed broken overrides import
TarunAdobe Jul 19, 2024
82b1bbb
chore: removed extra override imports
TarunAdobe Jul 19, 2024
3011e4b
Merge branch 'main' into testing-css-bridge-for-s2
TarunAdobe Jul 19, 2024
e3d6cb2
chore: included icon overrides in component CSS
Jul 19, 2024
f4c67e3
chore: updated vars to process s2 foundations
TarunAdobe Jul 23, 2024
c761fcc
chore: updated to foundations 10
Jul 26, 2024
d12d294
chore: added coach-indicator to generate tokens
Jul 26, 2024
b56599e
chore: updated alert banner overrides
Jul 26, 2024
bdcdabd
chore: removed console log
Jul 26, 2024
8293256
chore: fixed alert-banner css version and updated dialog css
TarunAdobe Jul 29, 2024
7ba84e9
chore: updated css fix for action button
Jul 30, 2024
956dd53
chore: updated to foundations 10 anf added alert banner overrides
Jul 26, 2024
6e57983
chore: updated to foundations 10
Jul 26, 2024
d98654f
chore: updated to foundations 11
Jul 31, 2024
b059d83
chore: upgraded typography to foundations .12
TarunAdobe Aug 1, 2024
9af2f5e
chore: updated tokens to foundations.12
TarunAdobe Aug 1, 2024
73ed9c5
chore: updated to foundations 13
Aug 2, 2024
83d16b9
chore: updated to foundations.13 for checkbox and meter
Aug 7, 2024
1bf9142
chore: updated tokens to foundations.14
Aug 7, 2024
e97d82a
chore: updated action-button to foundations.14 and accordion to found…
Aug 7, 2024
b740ce7
chore: updated to latest .15 css release
TarunAdobe Aug 8, 2024
8b86943
chore: updated theme.css to support spectrum typography
TarunAdobe Aug 8, 2024
d627e15
chore: added errorRecovery true to avoid lightningcss failures
TarunAdobe Aug 8, 2024
b3f913f
Merge branch 'testing-css-bridge-for-s2' of github.com:adobe/spectrum…
Aug 8, 2024
b3b98bd
chore: updated action-bar to foundations 13
Aug 9, 2024
be81061
chore: updated radio to foundations 12
Aug 9, 2024
7094c27
chore: updated action-bar css based on latest package
Aug 9, 2024
134689a
chore: fixed process-spectrum script
TarunAdobe Aug 12, 2024
ca190fe
chore: updated dialog css
TarunAdobe Aug 12, 2024
dd105d4
chore: added taggroup for global overrides
TarunAdobe Aug 12, 2024
6b76f83
chore: added chevron icon overrides to tabs CSS
Aug 12, 2024
fa48d8e
chore: updated combo-box to foundations 13
Aug 12, 2024
1b811b4
chore: fresh yarn
TarunAdobe Aug 14, 2024
039bc01
chore: updated textfield to foundations 12, and drop-zone and combo-…
Aug 14, 2024
e8bbf26
Merge branch 'testing-css-bridge-for-s2' of github.com:adobe/spectrum…
Aug 14, 2024
93ac3ef
fix: ensured asset in coach-mark didn't interfere with image-wrapper …
Aug 14, 2024
6fcc01a
chore: updated thumbnail, toast and underlay components to foundation…
Aug 15, 2024
2dd2eb8
chore: updated css
Aug 15, 2024
b54d0bf
chore: updated to foundations 15 for action-button and 13 for combobox
Aug 15, 2024
b8484a3
chore: fixed toast css dependency version
TarunAdobe Aug 19, 2024
e8cb392
chore: removed console log
Aug 19, 2024
dbde954
chore: updated to latest tokens version
TarunAdobe Aug 20, 2024
0606c67
chore: updated tokens to foundations 17
Aug 20, 2024
99f0ad0
chore: included typography imports for all systems
TarunAdobe Aug 21, 2024
ee7d342
chore: set spectrum as default for storybook
TarunAdobe Aug 21, 2024
877b2d8
chore: updated color-wheel css processing
TarunAdobe Aug 21, 2024
cf6175d
chore: updated sp-theme background color to background-base-color for…
Aug 26, 2024
03d7b8b
chore: added a getter function to switch to new background color for …
Aug 26, 2024
c09d67d
chore: combo-box quiet variant config update
Aug 29, 2024
4339f8b
chore: updated css to support mods
TarunAdobe Aug 30, 2024
7af0bf5
chore: overrides import mappings specificty change
Sep 2, 2024
73692b7
chore: removed picker changes
Sep 2, 2024
cc49b1a
Merge branch 'main' of github.com:adobe/spectrum-web-components into …
Sep 6, 2024
dbcf363
chore: updated to latest foundations
Sep 6, 2024
882e191
fix: component-overrides.css should be listed after spectrum-componen…
Sep 6, 2024
342c39e
chore: updated foundations
Sep 9, 2024
02fda73
chore: updated foundations
Sep 9, 2024
cf9f0bc
chore: updated tokens-v2
Sep 10, 2024
ccebaba
chore: cascading pickers size to its icon
Sep 10, 2024
c55d6e4
chore: updated modal, button mapping css
Sep 11, 2024
e527142
chore: updated actionbutton version to latest
TarunAdobe Sep 11, 2024
84c8f62
chore: fixed action-button config
TarunAdobe Sep 12, 2024
a7b9620
chore: action button edge to visual custom css
Sep 12, 2024
cd8f739
fix(picker): picker CSS does not need to set '--spectrum-icon-size'
Sep 12, 2024
a5c9758
chore: updated spectrum-css versions to latest release
TarunAdobe Sep 13, 2024
48aff7a
chore: updated foundations
Sep 17, 2024
c85f479
chore: updated foundations
Sep 17, 2024
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
  •  
  •  
  •  
6 changes: 5 additions & 1 deletion .stylelintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
"length-zero-no-unit": [true, { "ignore": "custom-properties" }],
"selector-type-no-unknown": [true, { "ignore": ["custom-elements"] }],
"selector-pseudo-element-colon-notation": ["single", {}],
"custom-property-pattern": "^_?([a-z][a-z0-9]*)(-[a-z0-9]+)*$"
"custom-property-pattern": "^_?([a-z][a-z0-9]*)(-[a-z0-9]+)*$",
"no-duplicate-selectors": null,
"selector-class-pattern": null,
"no-descending-specificity": null,
"declaration-block-no-redundant-longhand-properties": null
},
"overrides": [
{
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -423,5 +423,6 @@
"projects/*",
"tools/*",
"react/*"
]
],
"packageManager": "[email protected]"
}
3 changes: 2 additions & 1 deletion packages/accordion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"default": "./src/AccordionItem.js"
},
"./src/accordion-item.css.js": "./src/accordion-item.css.js",
"./src/accordion-overrides.css.js": "./src/accordion-overrides.css.js",
"./src/accordion.css.js": "./src/accordion.css.js",
"./src/index.js": {
"development": "./src/index.dev.js",
Expand Down Expand Up @@ -73,7 +74,7 @@
"@spectrum-web-components/shared": "^0.47.2"
},
"devDependencies": {
"@spectrum-css/accordion": "^5.1.2"
"@spectrum-css/accordion": "^6.0.0-s2-foundations.14"
},
"types": "./src/index.d.ts",
"customElements": "custom-elements.json",
Expand Down
3 changes: 2 additions & 1 deletion packages/accordion/src/AccordionItem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { Focusable } from '@spectrum-web-components/shared/src/focusable.js';
import { when } from '@spectrum-web-components/base/src/directives.js';
import '@spectrum-web-components/icons-ui/icons/sp-icon-chevron100.js';
import chevronIconStyles from '@spectrum-web-components/icon/src/spectrum-icon-chevron.css.js';
import chevronIconOverrides from '@spectrum-web-components/icon/src/icon-chevron-overrides.css.js';

import styles from './accordion-item.css.js';

Expand Down Expand Up @@ -69,7 +70,7 @@ export class AccordionItem extends SizedMixin(Focusable, {
noDefaultSize: true,
}) {
public static override get styles(): CSSResultArray {
return [styles, chevronIconStyles];
return [styles, chevronIconStyles, chevronIconOverrides];
}

@property({ type: Boolean, reflect: true })
Expand Down
265 changes: 265 additions & 0 deletions packages/accordion/src/accordion-overrides.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,265 @@
/*
Copyright 2023 Adobe. All rights reserved.
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
governing permissions and limitations under the License.
*/

/* THIS FILE IS MACHINE GENERATED. DO NOT EDIT */
:host {
--spectrum-accordion-item-height: var(--system-accordion-item-height);
--spectrum-accordion-item-width: var(--system-accordion-item-width);
--spectrum-accordion-disclosure-indicator-height: var(
--system-accordion-disclosure-indicator-height
);
--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-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
);
--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-component-edge-to-text: var(
--system-accordion-component-edge-to-text
);
--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-font-size: var(
--system-accordion-item-header-font-size
);
--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-font-size: var(
--system-accordion-item-content-font-size
);
--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-size-s: var(
--system-accordion-item-height-size-s
);
--spectrum-accordion-disclosure-indicator-height-size-s: var(
--system-accordion-disclosure-indicator-height-size-s
);
--spectrum-accordion-component-edge-to-text-size-s: var(
--system-accordion-component-edge-to-text-size-s
);
--spectrum-accordion-item-header-font-size-size-s: var(
--system-accordion-item-header-font-size-size-s
);
--spectrum-accordion-item-content-font-size-size-s: var(
--system-accordion-item-content-font-size-size-s
);
--spectrum-accordion-item-header-top-to-text-space-size-s: var(
--system-accordion-item-header-top-to-text-space-size-s
);
--spectrum-accordion-item-header-bottom-to-text-space-size-s: var(
--system-accordion-item-header-bottom-to-text-space-size-s
);
--spectrum-accordion-item-height-size-l: var(
--system-accordion-item-height-size-l
);
--spectrum-accordion-disclosure-indicator-height-size-l: var(
--system-accordion-disclosure-indicator-height-size-l
);
--spectrum-accordion-component-edge-to-text-size-l: var(
--system-accordion-component-edge-to-text-size-l
);
--spectrum-accordion-item-header-font-size-size-l: var(
--system-accordion-item-header-font-size-size-l
);
--spectrum-accordion-item-content-font-size-size-l: var(
--system-accordion-item-content-font-size-size-l
);
--spectrum-accordion-item-header-top-to-text-space-size-l: var(
--system-accordion-item-header-top-to-text-space-size-l
);
--spectrum-accordion-item-header-bottom-to-text-space-size-l: var(
--system-accordion-item-header-bottom-to-text-space-size-l
);
--spectrum-accordion-item-height-size-xl: var(
--system-accordion-item-height-size-xl
);
--spectrum-accordion-disclosure-indicator-height-size-xl: var(
--system-accordion-disclosure-indicator-height-size-xl
);
--spectrum-accordion-component-edge-to-text-size-xl: var(
--system-accordion-component-edge-to-text-size-xl
);
--spectrum-accordion-item-header-font-size-size-xl: var(
--system-accordion-item-header-font-size-size-xl
);
--spectrum-accordion-item-content-font-size-size-xl: var(
--system-accordion-item-content-font-size-size-xl
);
--spectrum-accordion-item-header-top-to-text-space-size-xl: var(
--system-accordion-item-header-top-to-text-space-size-xl
);
--spectrum-accordion-item-header-bottom-to-text-space-size-xl: var(
--system-accordion-item-header-bottom-to-text-space-size-xl
);
}

: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
);
--spectrum-accordion-item-height-size-s: var(
--system-accordion-compact-item-height-size-s
);
--spectrum-accordion-item-header-top-to-text-space-size-s: var(
--system-accordion-compact-item-header-top-to-text-space-size-s
);
--spectrum-accordion-item-header-bottom-to-text-space-size-s: var(
--system-accordion-compact-item-header-bottom-to-text-space-size-s
);
--spectrum-accordion-item-height-size-l: var(
--system-accordion-compact-item-height-size-l
);
--spectrum-accordion-item-header-top-to-text-space-size-l: var(
--system-accordion-compact-item-header-top-to-text-space-size-l
);
--spectrum-accordion-item-header-bottom-to-text-space-size-l: var(
--system-accordion-compact-item-header-bottom-to-text-space-size-l
);
--spectrum-accordion-item-height-size-xl: var(
--system-accordion-compact-item-height-size-xl
);
--spectrum-accordion-item-header-top-to-text-space-size-xl: var(
--system-accordion-compact-item-header-top-to-text-space-size-xl
);
--spectrum-accordion-item-header-bottom-to-text-space-size-xl: var(
--system-accordion-compact-item-header-bottom-to-text-space-size-xl
);
}

: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
);
--spectrum-accordion-item-header-line-height-size-l: var(
--system-accordion-spacious-item-header-line-height-size-l
);
--spectrum-accordion-item-header-top-to-text-space-size-l: var(
--system-accordion-spacious-item-header-top-to-text-space-size-l
);
--spectrum-accordion-item-header-bottom-to-text-space-size-l: var(
--system-accordion-spacious-item-header-bottom-to-text-space-size-l
);
--spectrum-accordion-item-header-line-height-size-xl: var(
--system-accordion-spacious-item-header-line-height-size-xl
);
--spectrum-accordion-item-header-top-to-text-space-size-xl: var(
--system-accordion-spacious-item-header-top-to-text-space-size-xl
);
--spectrum-accordion-item-header-bottom-to-text-space-size-xl: var(
--system-accordion-spacious-item-header-bottom-to-text-space-size-xl
);
--spectrum-accordion-item-header-line-height-size-s: var(
--system-accordion-spacious-item-header-line-height-size-s
);
--spectrum-accordion-item-header-top-to-text-space-size-s: var(
--system-accordion-spacious-item-header-top-to-text-space-size-s
);
--spectrum-accordion-item-header-bottom-to-text-space-size-s: var(
--system-accordion-spacious-item-header-bottom-to-text-space-size-s
);
}
1 change: 1 addition & 0 deletions packages/accordion/src/accordion.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ governing permissions and limitations under the License.
*/

@import url('./spectrum-accordion.css');
@import url('./accordion-overrides.css');

:host {
--spectrum-logical-rotation: ;
Expand Down
21 changes: 11 additions & 10 deletions packages/accordion/src/spectrum-accordion-item.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ governing permissions and limitations under the License.
position: relative;
}

:host(:first-child) {
:host:first-child {
border-block-start: 1px solid #0000;
border-color: var(
--mod-accordion-divider-color,
Expand Down Expand Up @@ -315,17 +315,9 @@ 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);
transform: var(--spectrum-logical-rotation,) rotate(90deg);
}

Expand All @@ -336,3 +328,12 @@ 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