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

Spectrum 2 🎉 Feature Branch #2352

Draft
wants to merge 109 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 99 commits
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
eb81120
feat: migration of tokens to spectrum 2
castastrophe Jan 15, 2025
a1fe620
feat: migration of tokens to spectrum 2
castastrophe Jan 15, 2025
cd9f2ae
feat: migration of tokens to spectrum 2
castastrophe Nov 18, 2024
bf49404
feat: bug fixes for reducing theming variables
castastrophe Nov 22, 2024
ee89fbe
feat: s2 foundations non-gray-800 colors update (#3413)
pfulton Nov 22, 2024
a03dfbb
chore: release (s2-foundations) (#3421)
github-actions[bot] Dec 3, 2024
52d7f94
fix(combobox): update border color in spectrum-two
castastrophe Dec 3, 2024
af1faf6
fix(picker): update background and border color
castastrophe Dec 3, 2024
f3eb7a0
chore: release (s2-foundations) (#3425)
github-actions[bot] Dec 3, 2024
18e7f18
fix(combobox): retain border values for S1
castastrophe Dec 3, 2024
dabab7b
chore: release (s2-foundations) (#3426)
github-actions[bot] Dec 3, 2024
820b79a
chore(assetcard,avatar,badge): remove mdx files (#3408)
marissahuysentruyt Dec 19, 2024
8821724
feat(tokens): use 13.0.0-beta.5
pfulton Dec 11, 2023
b434a2c
feat(tokens): use 13.0.0-beta.8
pfulton Jan 8, 2024
33af66e
feat(tokens): use 13.0.0-beta.9
pfulton Jan 11, 2024
deb2043
feat(actiongroup)!: migrate to S2 (#2453)
Feb 2, 2024
651fc8a
feat(buttongroup,page)!: migrate to S2 (#2457)
jenndiaz Feb 2, 2024
06576bf
feat(tokens)!: use 13.0.0-beta.13
pfulton Feb 2, 2024
bac39e8
chore(release): release
pfulton Feb 6, 2024
bcf27ab
feat(tokens)!: use spectrum-tokens 13.0.0-beta.16
pfulton Feb 22, 2024
01ea4ac
feat(closebutton)!: migrate to S2 (#2564)
Mar 7, 2024
5307fbe
chore: s2 grays component-level migration (#2583)
pfulton Mar 7, 2024
46477a0
fix(commons): remove renamed mods marked for deprecation (#2580)
jawinn Mar 8, 2024
e033d05
feat(fieldlabel)!: s2 migration (#2569)
jawinn Mar 11, 2024
92ece2d
chore(tokens): manual version bump for 14.0.0-next.1
pfulton Mar 12, 2024
12adde2
chore(release): release
pfulton Mar 12, 2024
c20f1c6
feat(downstate): docs + implementation for example components (#2520)
Mar 19, 2024
679beae
chore(release): release
pfulton Mar 21, 2024
4aae7b0
chore: rebase against main and update components to use prerelease to…
pfulton Mar 28, 2024
5fd334c
feat(cornerrounding): add custom token and foundations documentation …
jenndiaz Mar 28, 2024
a98eb7d
fix(storybook): body classes for story and docs pages (#2617)
Apr 1, 2024
e5a0e91
feat(opacitycheckerboard): S2, small t-shirt size squares (#2610)
Apr 8, 2024
b52890e
chore(tokens): manual version bump for prerelease
pfulton Apr 9, 2024
900c8ef
feat: add example gradients for static black and white (#2637)
jawinn Apr 11, 2024
d8546bd
chore(tokens): use [email protected]
pfulton Apr 12, 2024
af2c0cd
chore(release): release
pfulton Apr 12, 2024
7ebe954
feat(switch): s2 migration (#2651)
Apr 15, 2024
ae38e22
feat(button): migrate to Spectrum 2 (#2600)
jawinn May 1, 2024
d125b43
feat(progressbar): s2 migration (#2659)
May 8, 2024
f90cc36
refactor(button): remove spectrum-ButtonWithFocusRing extend (#2725)
jawinn May 30, 2024
edef8ab
docs(dropshadow): add stories and docs for dropshadow (#2674)
rise-erpelding Jun 4, 2024
7d3171a
feat(picker)!: migrate to spectrum 2 (#2697)
jawinn Jun 18, 2024
4e3db2e
feat(statuslight): s2 migration (#2818)
marissahuysentruyt Jun 28, 2024
7b4f4f4
feat(tooltip): s2 migration (#2743)
Jul 19, 2024
547f860
chore: release (next) (#2852)
github-actions[bot] Aug 12, 2024
16325b0
chore: release (next) (#3353)
github-actions[bot] Nov 1, 2024
19f79cc
feat(avatar): migrate s2 avatar (#3355)
cdransf Nov 8, 2024
5188292
feat(colorloupe): migrate to s2 drop-shadow tokens (#3301)
rise-erpelding Nov 12, 2024
9be7931
feat(thumbnail): S2 migration (#3367)
cdransf Nov 12, 2024
418219f
feat(colorarea): S2 migration (#3388)
cdransf Nov 15, 2024
570ceec
feat(thumbnail-opacity-checkboard): S2 migration (#3394)
cdransf Nov 19, 2024
0bce7a5
build: align tooling with s2-foundations branch
castastrophe Dec 4, 2024
1a2491e
fix(pagination): deprecate legacy features to align with foundations
castastrophe Dec 4, 2024
347b1c9
feat(dialog): s2 standard dialog migration (#2860)
marissahuysentruyt Dec 9, 2024
4fb30b3
feat(alertbanner): migrate to spectrum 2 (#2652)
jawinn Dec 19, 2024
f2f626b
chore(storybook): standardize down-state decorator
castastrophe Dec 24, 2024
487ace5
build: remove theme processing, site package; add reporter
castastrophe Dec 24, 2024
054cb00
build: add story exports; remove context from storybook
castastrophe Dec 27, 2024
95237f1
chore: align peerDependencies to local versions
castastrophe Dec 29, 2024
0cd289f
fix: use new tag to hide storybook foundations stories (#3474)
jawinn Jan 3, 2025
ae95f0e
fix: restore undefined custom properties [part 5] (#3475)
5t3ph Jan 6, 2025
b2b9166
fix: restore undefined custom properties [part 4] (#3473)
jawinn Jan 6, 2025
ed559fe
fix(textfield,menu,tag,toast,tabs,well,popover): define custom props …
rise-erpelding Jan 6, 2025
049f787
docs(avatar): update sizing documentation (#3483)
marissahuysentruyt Jan 8, 2025
8a32162
fix(calendar,dial,pickerbutton,progressbar,radio,stepper): unused cus…
rise-erpelding Jan 13, 2025
d1521e2
chore: fix storybook import errors
castastrophe Jan 21, 2025
91d2cf4
fix(actionbutton,avatar,button,dialog): define missing custom propert…
cdransf Jan 21, 2025
ce189d0
chore: release (next) (#3513)
github-actions[bot] Jan 22, 2025
e1ef019
chore: spectrum-two fixes (#3514)
marissahuysentruyt Jan 22, 2025
0c52c48
feat(progress-circle): migrating s2 tokens
aramos-adobe Nov 10, 2024
dba5203
fix(opacitycheckerboard): remove unused var causing error (#3525)
jawinn Jan 29, 2025
8988f80
feat(colorslider): S2 migration (#3424)
cdransf Jan 29, 2025
50e1e02
feat(dialog): S2 takeover dialog migration (#3347)
marissahuysentruyt Jan 30, 2025
4bc6ad3
feat(popover)!: S2 popover migration (#3365)
marissahuysentruyt Jan 31, 2025
d975107
feat(breadcrumb)!: spectrum 2 migration (#3395)
jawinn Feb 3, 2025
86f5f90
feat(illustratedmessage): adding new s2 tokens
aramos-adobe Oct 14, 2024
a4a8d7b
chore: fix a few minor duplicate properties
castastrophe Feb 5, 2025
740d1f2
build: exit and reenter pretag to reset versions
castastrophe Feb 5, 2025
03175e9
feat(infield-progress-cirlce): new component, sharing tokens from pro…
aramos-adobe Feb 6, 2025
b9e874a
docs(dialog): use isOpen shared state in controls (#3562)
marissahuysentruyt Feb 17, 2025
842b11f
fix(statuslight): remove accent variant (#3561)
marissahuysentruyt Feb 17, 2025
986d104
feat(icons)!: s2 icons - use latest workflow and ui icon sets (#3001)
jawinn Feb 18, 2025
b537314
fix(combobox): corrects cases where open combobx stories and testing …
cdransf Feb 21, 2025
ad861d0
chore: release (next) (#3576)
github-actions[bot] Feb 24, 2025
0f34bff
chore(storybook): bug fix for rendering error
castastrophe Feb 26, 2025
c6836fb
feat(divider): s2 migration (#3557)
cdransf Feb 26, 2025
cae548c
chore: merge remote-tracking branch 'origin/main' into spectrum-two
castastrophe Feb 27, 2025
11d00e3
chore: merge remote-tracking branch 'origin/main' into spectrum-two
castastrophe Feb 27, 2025
b9f61e4
feat(colorwheel): s2 migration (#3390)
cdransf Feb 27, 2025
f229c2c
chore: release (next) (#3583)
github-actions[bot] Feb 27, 2025
9ee29fd
fix(readme): corrects path to css illutration png in readme (#3596)
cdransf Mar 4, 2025
023efe3
feat: simplify fallback of ui icon size numbers (#3571)
jawinn Mar 4, 2025
924fc7f
feat(dropzone): migrating new S2 tokens, more spaced out dashed lines…
aramos-adobe Mar 5, 2025
f1c8838
chore: merge remote-tracking branch 'origin' into spectrum-two
castastrophe Mar 6, 2025
ba1d868
chore: release (next) (#3605)
github-actions[bot] Mar 7, 2025
0d5bdfb
chore(deps): bump axios from 1.7.4 to 1.8.2 in the npm_and_yarn group…
dependabot[bot] Mar 11, 2025
a6d60ff
chore: merge remote-tracking branch 'origin' into spectrum-two
castastrophe Mar 11, 2025
27e7bfc
chore: merge remote-tracking branch 'origin' into spectrum-two
castastrophe Mar 11, 2025
cb1b957
fix(modal): change modal background color to transparent (#3604)
marissahuysentruyt Mar 11, 2025
89f987c
chore: merge rremote-tracking branch 'origin' into spectrum-two
castastrophe Mar 12, 2025
923bef2
chore: release (next) (#3620)
github-actions[bot] Mar 13, 2025
c88fcdc
feat(link): new typography tokens, focus color and design, WHCM focus…
aramos-adobe Mar 13, 2025
48ae9d7
chore: release (next) (#3622)
github-actions[bot] Mar 16, 2025
9d0ab17
chore: merge branch 'main' into spectrum-two (#3633)
jawinn Mar 20, 2025
0af6461
feat(radio): adding new colors, type, and size tokens, invalid state,…
aramos-adobe Mar 20, 2025
fa8eb43
chore: release (next) (#3635)
github-actions[bot] Mar 20, 2025
fcfa916
chore: merge remote-tracking branch 'origin' into spectrum-two
castastrophe Mar 21, 2025
b2c6357
feat(actionbutton): s2 migration (#2669)
mdt2 Mar 21, 2025
f8c6e9d
chore: release (next) (#3638)
github-actions[bot] Mar 21, 2025
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
  •  
  •  
  •  
49 changes: 49 additions & 0 deletions .changeset/beige-dragons-tickle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
"@spectrum-css/illustratedmessage": major
"@spectrum-css/dropzone": major
---

# S2 Illustrated Message Migration

This migration contains new tokens for t-shirt sizes (S, M, L), vertical and horizontal orientation along with their maximum width, illustration sizes, and content spacing. Dropzone `--mod` names are renamed to match the semantic tokens in illustrated message.

## Illustrated Message

New properties
`--spectrum-illustrated-message-heading-to-description`
`--spectrum-illustrated-message-illustration-to-heading`
`--spectrum-illustrated-message-illustration-to-content`
`--spectrum-illustrated-message-description-to-action`
`--spectrum-illustrated-message-illustration-color`
`--spectrum-illustrated-message-illustration-size`
`--spectrum-illustrated-message-small-cjk-title-font-size`
`--spectrum-illustrated-message-large-cjk-title-font-size`
`--spectrum-illustrated-message-large-body-font-size`
`--spectrum-illustrated-message-horizontal-maximum-width`

New mods
`--mod-illustrated-message-description-to-action`
`--mod-illustrated-message-heading-to-description`
`--mod-illustrated-message-illustration-to-content`
`--mod-illustrated-message-horizontal-maximum-width`

Removed properties
`--spectrum-illustrated-message-title-to-heading`
`--spectrum-illustrated-message-description-max-inline-size`
`--spectrum-illustrated-message-heading-max-inline-size`
`--spectrum-illustrated-message-illustration-accent-color`
`--mod-illustrated-message-illustration-accent-color`
`--highcontrast-illustrated-message-illustration-accent-color`

## Dropzone

New mods
`--mod-drop-zone-body-to-action`
`--mod-drop-zone-illustration-to-title`

## Dropzone nested mods

Renamed mods
`--mod-illustrated-message-title-to-heading` > `--mod-illustrated-message-illustration-to-heading`
`--mod-illustrated-message-heading-to-body` > `--mod-illustrated-message-heading-to-description`
`--mod-illustrated-message-content-maximum-width` > `--mod-illustrated-message-vertical-maximum-width`
39 changes: 39 additions & 0 deletions .changeset/big-beds-care.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
"@spectrum-css/dropzone": major
---

## Dropzone S2 Migration

Since dropzone shares a lot of illustrated message's new content tokens (typography and spacing), tons of unused`--mods` were removed.

The component reflects the [new design](https://www.figma.com/design/eoZHKJH9a3LJkHYCGt60Vb/S2-token-specs?node-id=10141-2822&m=dev) of the borders that includes dash length and dash gap.

### SVG Border

To support the intention of the design, an SVG element is used. There are custom `--mod` tokens to adjust the length of dashed lines and the gap between them. It's understood it may be too much to consume an additional element so there's a fallback where the SVG element is not necessary - dropzone will use the standard `border` CSS property.

### New mods

`--mod-drop-zone-content-height`
`--mod-drop-zone-edge-to-text`
`--mod-drop-zone-title-line-height`
`--mod-drop-zone-border-dash-length`
`--mod-drop-zone-border-dash-gap`

### Removed mods

`--mod-drop-zone-body-color`
`--mod-drop-zone-body-font-family`
`--mod-drop-zone-body-font-style`
`--mod-drop-zone-body-font-weight`
`--mod-drop-zone-body-line-height`
`--mod-drop-zone-content-color`
`--mod-drop-zone-content-edge-to-text`
`--mod-drop-zone-content-font-size`
`--mod-drop-zone-heading-color`
`--mod-drop-zone-heading-font-family`
`--mod-drop-zone-heading-font-size`
`--mod-drop-zone-heading-font-style`
`--mod-drop-zone-heading-font-weight`
`--mod-drop-zone-heading-line-height`
`--mod-drop-zone-heading-to-body` `--mod-drop-zone-illustration-to-heading` `--mod-drop-zone-illustration-to-title`
21 changes: 21 additions & 0 deletions .changeset/chilly-peaches-sniff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
"@spectrum-css/statuslight": major
---

## Spectrum 2 migration

New non-semantic colors were added to the variants list, while the `accent` semantic variant was removed. There were also some new and updated color and text-to-visual tokens used to match the designs, along with normalizing font family, font style, and font weight.

New mods added:

- `--mod-statuslight-font-family`
- `--mod-statuslight-font-style`
- `--mod-statuslight-nonsemantic-brown-color`
- `--mod-statuslight-nonsemantic-cinnamon-color`
- `--mod-statuslight-nonsemantic-pink-color`
- `--mod-statuslight-nonsemantic-silver-color`
- `--mod-statuslight-nonsemantic-turquoise-color`

Removed mods:

- `--mod-statuslight-semantic-accent-color`
11 changes: 11 additions & 0 deletions .changeset/clean-oranges-smell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"@spectrum-css/preview": major
---

Updates Storybook to use the latest icon sets for Spectrum 2. Includes changes to the directories that
are used for loading in the sprite sheet and the individual icons, as they have moved.

The global Icon Loader has been updated to apply the existing key name renaming from file names to icon
names. This is now done once at the loader step, rather than each time within the Icon component template.
The loader also now excludes the handful of 22x20 workflow icons, as these are not yet handled within the
design system.
5 changes: 5 additions & 0 deletions .changeset/few-doors-smile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@spectrum-css/buttongroup": patch
---

Adds a new `--mod-buttongroup-flex-wrap` custom property to leverage if a user wishes to customize the `flex-wrap` property.
7 changes: 7 additions & 0 deletions .changeset/flat-snails-admire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@spectrum-css/infieldprogresscircle": major
---

## Infield Progresscircle S2 Migration

In-field progress circle is a new component created to replace progress circle (size S) in t-shirt size components. The button, textfield, combo box, and picker `template.js` files have all been updated to call for infield progress circles. This component comes in four sizes: (S, M, L, XL), has updated color variants (default, white, black), and has a unified track thickness.
16 changes: 16 additions & 0 deletions .changeset/fresh-crabs-deliver.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
"@spectrum-css/breadcrumb": major
---

#### Spectrum 2 Migration

The breadcrumbs component is now updated to use the S2 specs and tokens. This includes updated spacing, heights, colors, font sizes, etc.

There has been a major design change to the variant classes related to density and sizing, to align their terminology better with t-shirt sizes:

- The "compact" variant no longer exists. The `spectrum-Breadcrumbs--compact` class and associated custom properties are removed. The default (medium) breadcrumbs are now sized similar to what was previously called compact.
- There is a new "large" variant, which uses the `spectrum-Breadcrumbs--sizeL` class. This is sized similarly to what was previously the default.

In the multiline variant, the size of the title item can optionally be customized using an additional child heading element that applies one of the
typography component's `spectrum-Heading--size*` classes. The preferred sizes specified in the design spec are small, medium, large (default), and
extra-large. If an additional heading element is not used within the title item, the text will still be sized correctly to the default.
8 changes: 8 additions & 0 deletions .changeset/fresh-seahorses-join.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@spectrum-css/button": patch
---

#### refactor: remove spectrum-ButtonWithFocusRing placeholder class extend

Removes the need for the extend from this placeholder class, as the styles it provides have diverged slightly from what is in button and it was causing some unnecessary CSS to override.
This should not result in any changed visuals or behavior, as the same CSS has been integrated.
5 changes: 5 additions & 0 deletions .changeset/friendly-dolls-raise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@spectrum-css/avatar": major
---

Adds support for new avatar-size tokens (avatar-size-800 to avatar-size-1500). Updates avatar component story to support new sizes. Adds support for avatar-border-color and avatar-border-thickness.
26 changes: 26 additions & 0 deletions .changeset/giant-windows-smoke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
"@spectrum-css/colorwheel": major
---

# colorwheel S2 migration

This change migrates the colorwheel component to S2. It adds the `--spectrum-colorwheel-border-color-rgb` and `--spectrum-colorwheel-border-opacity` custom properties. It updates `--spectrum-colorwheel-border-color` to leverage these tokens in an `rgba(...)` function.

This removes the `spectrum-ColorWheel-border` and associated template DOM node as the outside/underlying border are no longer present in the S2 designs. `::before` and `::after` pseudo elements are now used to draw the exterior and interior borders that overlay the exterior and interior edges of the color wheel.

Support is provided for the `240px` and `192px` sizes outlined in the design requirements.

The `forced-colors` media query has been moved to the bottom of the file consistent with our other component implementations.

Stories, tests and documentation have been updated to be consistent with these changes.

The following mods have been removed:

```css
--mod-colorwheel-height
--mod-colorwheel-width
--mod-colorwheel-min-width
--mod-colorwheel-path-borders
--mod-colorwheel-colorarea-margin
--mod-colorwheel-border-width
```
13 changes: 13 additions & 0 deletions .changeset/hot-books-fail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
"@spectrum-css/picker": major
---

#### Spectrum 2 migration

Picker now uses Spectrum 2 tokens and specifications. A few notable changes:

- The mod custom property `--mod-line-height-100` has been renamed to `--mod-button-line-height`.
- The mod custom property `--mod-sans-font-family-stack` has been renamed to `--mod-button-font-family`.
- The mod custom property `--mod-animation-duration-100` has been renamed to `--mod-button-animation-duration`.
- The mod custom property `--mod-picker-spacing-text-to-alert-icon-inline-start` has been renamed to `--mod-picker-spacing-text-to-icon-inline-end`. This removed the fallback that was marked as deprecated in a previous version.
- The mod custom property `--mod-picker-spacing-text-to-icon` has been removed. Use `--mod-picker-spacing-text-to-icon-inline-end` for the spacing between text and visual (indicator or disclosure), or `--mod-picker-spacing-starting-icon-to-text` for the space between the optional workflow icon and the text.
24 changes: 24 additions & 0 deletions .changeset/itchy-kids-travel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
"@spectrum-css/progresscircle": major
---

## Progress circle S2 migration

This is the S2 migration of the progress circle. The original markup has changed to an svg and circle element to allow CSS styles such as `stroke-linecap`. This was necessary to match the design. The `--small/--medium/--large` sizing classes have been deprecated in favor of t-shirt classes `--sizeS/--sizeM/--sizeL`

### Animation

`@keyframes spectrum-dashoffset-animation`:
This animation was created by React Spectrum and used to keep the same speed and bezier curve.

### Added tokens

### Removed styles & mods

`--spectrum-progress-circle-track-border-color-over-background`
`--spectrum-progress-circle-fill-border-color-over-background`
`--spectrum-progress-circle-track-border-style`
`--spectrum-progress-circle-track-border-style`
`--highcontrast-progress-circle-track-border-style`
`--mod-progress-circle-track-border-style`
`--spectrum-progress-circle-track-border-style`
5 changes: 5 additions & 0 deletions .changeset/itchy-shrimps-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@spectrum-css/picker": patch
---

S2 Popover has an updated default position, bottom-start. The correct `.spectrum-Popover--bottom-start` class was added to the open popover selector blocks for picker so that the spacing from the picker to the popover is correctly adjusted.
23 changes: 23 additions & 0 deletions .changeset/light-years-speak.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
"@spectrum-css/tooltip": major
---

## Spectrum 2 migration

This migration includes updated colors, rounding, a bigger tip, and the removal of variants (only neutral is available in Spectrum 2). As a result of the deprecation of variants, icons have also been removed.

The redesign of the tip, specifically the rounding, required a reworking of how we use clip-path and transform.

Some custom property mods have been removed:

- `--mod-tooltip-background-color-informative`
- `--mod-tooltip-background-color-negative`
- `--mod-tooltip-background-color-positive`
- `--mod-tooltip-icon-spacing-block-start`
- `--mod-tooltip-icon-spacing-inline-end`
- `--mod-tooltip-icon-spacing-inline-start`
- `--mod-tooltip-icon-width`

And one mod has been added:

- `--mod-tooltip-tip-corner-radius`
5 changes: 5 additions & 0 deletions .changeset/mean-eggs-learn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@spectrum-css/thumbnail": minor
---

Replaces corner-radius-75 with thumbnail-corner-radius.
52 changes: 52 additions & 0 deletions .changeset/metal-fireants-switch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
---
"@spectrum-css/dialog": major
"@spectrum-css/modal": patch
"@spectrum-css/underlay": patch
---

## Spectrum 2 Standard Dialog Migration

This is the migration for standard dialog. The Divider component is no longer supported in S2 dialogs. In addition, some new and updated tokens are in place to update dialog corner rounding, font treatments, spacing/padding, and maximum/minimum widths. There were several new elements implemented as well, including optional header and footer content, hero/cover images, checkbox and text-only options in the footer content area.

The `.spectrum-Dialog--small`, `.spectrum-Dialog--medium`, and `.spectrum-Dialog--large` sizing classes were deprecated and removed from the CSS in favor of the t-shirt sizes. Additionally, the spelling of the `.spectrum-Dialog--dismissable` class was corrected to `.spectrum-Dialog--dismissible`.

Mod properties are either "new," have been renamed to reflect the respective dialog language, or were removed:

_New Mods_
`--mod-standard-dialog-spacing-title-to-header-content`
`--mod-standard-dialog-spacing-title-to-description`
`--mod-standard-dialog-header-content-font-size`

_Renamed Mods_
`--mod-dialog-confirm-small-width` > `--mod-standard-dialog-max-width-small`
`--mod-dialog-confirm-medium-width` > `--mod-standard-dialog-max-width`
`--mod-dialog-confirm-large-width` > `--mod-standard-dialog-max-width-large`
`--mod-dialog-confirm-border-radius` > `--mod-standard-dialog-border-radius`
`--mod-dialog-confirm-description-text-size` > `--mod-standard-dialog-description-font-size`
`--mod-dialog-confirm-description-text-line-height` > `--mod-standard-dialog-description-line-height`
`--mod-dialog-confirm-description-text-color` > `--mod-standard-dialog-description-text-color`
`--mod-dialog-confirm-description-font-weight` > `--mod-standard-dialog-description-font-weight`
`--mod-dialog-heading-font-weight` > `--mod-standard-dialog-heading-font-weight`
`--mod-dialog-confirm-title-text-line-height` > `--mod-standard-dialog-heading-line-height`
`--mod-dialog-confirm-title-text-color` > `--mod-standard-dialog-heading-text-color`
`--mod-dialog-confirm-title-text-size` > `--mod-standard-dialog-heading-font-size`
`--mod-dialog-confirm-hero-height` > `--mod-standard-dialog-hero-block-size`
`--mod-dialog-min-inline-size` > `--mod-standard-dialog-min-inline-size`
`--mod-dialog-confirm-padding-grid` > `--mod-standard-dialog-spacing-grid-padding`
`--mod-dialog-confirm-footer-padding-top` > `--mod-standard-dialog-spacing-description-to-footer`
`--mod-dialog-confirm-close-button-padding` > `--mod-standard-dialog-spacing-edge-to-close-button`
`--mod-dialog-confirm-gap-size` > `--mod-standard-dialog-spacing-footer-to-button-group`

_Removed Mods_
`--mod-dialog-confirm-buttongroup-padding-top`
`--mod-dialog-confirm-close-button-size`
`--mod-dialog-confirm-description-margin`
`--mod-dialog-confirm-description-padding`
`--mod-dialog-confirm-divider-block-spacing-end`
`--mod-dialog-confirm-divider-block-spacing-start`
`--mod-dialog-confirm-divider-height`

Modal and underlay updates

- Modal component now uses the updated corner rounding.
- Underlay has an updated comment that addresses the overlay-color/overlay-opacity tokens.
23 changes: 23 additions & 0 deletions .changeset/modern-chairs-sit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
"@spectrum-css/dialog": major
"@spectrum-css/modal": minor
---

## S2 Takeover dialog

This is the migration for the fullscreen/fullscreenTakeover dialog stories (these stories correspond to the "takeover dialog" in Figma). The Divider component support was removed in S2 standard dialog migration ([#2860](https://github.com/adobe/spectrum-css/pull/2860)). New and updated tokens are in place to update fullscreen/fullscreenTakeover dialog sizing, grid spacing, spacing in the header, and font sizes. Fullscreen/fullscreenTakeover dialogs do not support additional footer content or checkboxes (in comparison to the standard dialog).

Takeover dialogs also support replacing text in the header and body areas with other components. This required an additional `.spectrum-Dialog-headerContentWrapper` element that should center whatever component/content within.

Class names updated to match naming convention (remove hyphens and capitalize second word):
`.spectrum-Dialog-header-content` > `.spectrum-Dialog-headerContent`
`.spectrum-Dialog-footer-content` > `.spectrum-Dialog-footerContent`

_New Mods_
`--mod-takeover-dialog-grid-spacing`
`--mod-takeover-dialog-spacing-header-content-gap`
`--mod-takeover-dialog-title-font-size`

Modal updates

- Modal component now uses the updated margin token (`window-to-edge`) found in the takeover dialog design specs. This work also introduced `--spectrum-modal-takeover-window-to-edge`
18 changes: 18 additions & 0 deletions .changeset/nine-kings-repair.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
"@spectrum-css/button": major
---

#### Spectrum 2 migration

Button now uses Spectrum 2 tokens and specifications, which includes many color changes to all variants. A few other notable changes:

- Outline buttons are no longer available in accent and negative options — use the filled variant instead.
- Medium size is now the default. The class `.spectrum-Button--sizeM` is now unnecessary for this size, and has been removed.
- The `.spectrum-Button--fill` class is no longer needed and has been removed.

The following `--mod` custom properties have been renamed:

- `--mod-line-height-100` has been renamed to `--mod-button-line-height`
- `--mod-sans-font-family-stack` has been renamed to `--mod-button-font-family`
- `--mod-animation-duration-100` has been renamed to `--mod-button-animation-duration`
- `--mod-bold-font-weight` has been renamed to `--mod-button-font-weight`
Loading
Loading