Skip to content

Releases: adobe/spectrum-css

@spectrum-css/[email protected]

20 Jun 13:44
2d71445
Compare
Choose a tag to compare
Pre-release

Patch Changes

@spectrum-css/[email protected]

20 Jun 13:44
2d71445
Compare
Choose a tag to compare
Pre-release

Patch Changes

@spectrum-css/[email protected]

20 Jun 13:44
2d71445
Compare
Choose a tag to compare
Pre-release

Patch Changes

@spectrum-css/[email protected]

19 Jun 20:08
4198053
Compare
Choose a tag to compare
Pre-release

Patch Changes

  • #3818 f20e1e7 Thanks @marissahuysentruyt! - Adds --spectrum-table-selected-row-background-color-rgb to light-vars.css and dark-vars.css for custom tokens.

@spectrum-css/[email protected]

19 Jun 20:08
4198053
Compare
Choose a tag to compare
Pre-release

Minor Changes

📝 #3818 f20e1e7 Thanks @marissahuysentruyt!

S2 table migration (continued)

Net-new features
  • New sparkline SVGs available for cell content
Description of other S2 table work

A new .spectrum-Table-headCell--alignEnd class was created to correspond to tables that may have end-aligned numerical data so the head cell follows the text alignment correctly.

Semantically, if a table should enable column sorting, the content of a column's head cell should actually be a button, since it is triggering an action. If the column header cell could trigger a menu, the content of that cell should also be a button. New markup has been included to improve the semantic design of the content of header cells, utilizing button components to signify an action can be triggered, or a menu can be triggered.

In Storybook, new stories have been added to the docs page and the testing grid for Chromatic. These stories include WithMenuButton, WithChartContent. Documentation has been added for each of these stories, as well as expanded in other stories.

Modifier changes
Renamed modifiers
Old modifier New modifier
--mod-table-row-active-color --mod-table-row-background-color-active
New modifiers
  • --mod-table-header-font-style
  • --mod-table-header-icons-color-active
  • --mod-table-header-icons-color-default
  • --mod-table-header-icons-color-hover
  • --mod-table-header-icons-color-key-focus
  • --mod-table-row-font-family
  • --mod-table-row-font-style
  • --mod-table-row-text-color-active
  • --mod-table-row-text-color-hover
Removed modifiers
  • --mod-table-header-background-color-quiet
  • --mod-table-row-background-color-quiet

@spectrum-css/[email protected]

19 Jun 20:08
4198053
Compare
Choose a tag to compare
Pre-release

Patch Changes

@spectrum-css/[email protected]

19 Jun 20:07
4198053
Compare
Choose a tag to compare
Pre-release

Patch Changes

@spectrum-css/[email protected]

19 Jun 20:07
4198053
Compare
Choose a tag to compare
Pre-release

Major Changes

📝 #3684 f0c6273 Thanks @jawinn!

Spectrum 2 migration

Accordion now uses Spectrum 2 tokens and specifications.

New sized tokens are used for corner rounding, the spacing around the disclosure icon, and
the spacing around the content area.

New features
  • Adds the optional "quiet" style, which does not show dividers between accordion items.
  • Adds CSS transition to animate the rotation of the disclosure indicator when expanding and
    collapsing the accordion item.
  • Adds no inline padding variant (.spectrum-Accordion--noInlinePadding) in which the item
    header does not have padding.
  • Per design spec, accordion items have a min-width and default width. Default width can be
    overridden with --mod-accordion-item-width but should not be smaller than
    --spectrum-accordion-item-minimum-width.
Markup changes

The HTML markup has changed slightly for the accordion header. The disclosure icon has been moved
from outside the button (spectrum-Accordion-itemHeader), to within the button. The extra
element with class spectrum-Accordion-itemIconContainer, previously wrapping the icon, has
been removed. A span with class spectrum-Accordion-itemTitle has been added around the heading
text.

Modifier changes

The following --mod custom properties have been renamed to better reflect how they are used:

  • --mod-accordion-item-height has been renamed to --mod-accordion-item-minimum-height
  • --mod-accordion-min-block-size has been renamed to --mod-accordion-item-min-block-size
  • --mod-accordion-component-edge-to-text has been renamed to --mod-accordion-content-padding-inline

New modifiers:

  • --mod-accordion-animation-duration
  • --mod-accordion-edge-to-content-area
  • --mod-accordion-item-minimum-width
  • --mod-accordion-top-to-disclosure-indicator

@spectrum-css/[email protected]

11 Jun 14:50
f35a5ad
Compare
Choose a tag to compare

Patch Changes

Fixed --spectrum-cjk-font variable to correctly reference --spectrum-cjk-font-family-stack instead of --spectrum-code-font-family-stack.

@spectrum-css/[email protected]

11 Jun 14:50
f35a5ad
Compare
Choose a tag to compare

Patch Changes