Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to spectrum-two, this PR will be updated.
spectrum-two
is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exit
onspectrum-two
.Releases
@spectrum-css/[email protected]
Major Changes
#3792
032001b
Thanks @aramos-adobe! - ### S2 Picker component refactorspectrum-Picker
tospectrum-Picker-button
spectrum-Picker
now encapsulates help text, label, and popover componentsflex-shrink
to progress circle for better layout control when truncation and loading is visiblespectrum-Picker
custom propertiesNew token
--spectrum-picker-popover-animation-distance
Renamed tokens
spectrum-picker-spacing-picker-to-popover
-->--spectrum-picker-popover-animation-distance
@spectrum-css/[email protected]
Major Changes
#3799
c86d476
Thanks @marissahuysentruyt! - ### S2 table migrationCompared to the S1 table, this component has updated corner rounding, updated color tokens, some updated spacing, and an overall refreshed look.
Net-new features
selectionMode: "multiple"
) render an indeterminate checkbox in thethead
/div
equivalent. Single-select tables (selectionMode: "single"
) do not render the indeterminate checkbox in the header row. (Note: theselectionMode
arg is disabled and will not render in the Storybook control table.)Sort
to indicate "general" sorting,SortUp
for ascending sort direction,SortDown
for descending sort direction.Description of other S2 table work
T-shirt sizing for tables is not technically supported, so t-shirt size classes (i.e.
.spectrum-Table--sizeS
), have been removed across all density variants.The
.spectrum-Table-cell--alignRight
class has been renamed to.spectrum-Table-cell--alignEnd
to reflect the preference for "logical" positioning. The.spectrum-Table-cell--alignCenter
class has been refactored to.spectrum-Table-cell--alignStart
.In S1, the CSS table component only supported thumbnails. Because the S2 table supports thumbnails, as well as avatars and icons, most of the language regarding thumbnails has also changed. For instance, the
showThumbnail
storybook arg was refactored tovisualElement
. The following CSS classes have been removed or refactored to remove the thumbnail language in favor of "visual" instead:.spectrum-Table-thumbnailInner
>>.spectrum-Table-visualInner
.spectrum-Table-row--thumbnail
>> removed.spectrum-Table-cell--thumbnail
>> removed.spectrum-Table-thumbnailInner
>> removed.spectrum-Table-thumbnailContent
>> removed.spectrum-Table-thumbnailInner
>> removedThe drop zones have been refactored to approach the drop zone indicators as pseudo elements, as opposed to
outline
properties.Because there are multiple sort icons in the S2 table,
.spectrum-Table-sortedIcon
has been renamed to.spectrum-Table-sortIcon
.Individual cell focus rings have rounded corners.
The outer table border extends all the way around the
thead
/div
equivalent.In Storybook, several new stories have been added to the docs page and the testing grid for Chromatic. These stories include
EmptyState
,LoadingState
,SingleSelect
,NumericalData
,TableStates
,Sortable
. Documentation has been added for each of these stories, as well as expanded in other stories.Mods
Renamed Modifiers
--mod-table-border-radius--quiet
--mod-table-border-radius-quiet
--mod-table-header-top-to-text
--mod-table-header-row-top-to-text
--mod-table-header-bottom-to-text
--mod-table-header-row-bottom-to-text
--mod-table-cell-inline-space
--mod-table-cell-inline-spacing
--mod-table-checkbox-to-text
--mod-table-checkbox-to-cell-content
--mod-table-header-background-color--quiet
--mod-table-header-background-color-quiet
--mod-table-header-bottom-to-text
--mod-table-header-row-bottom-to-text
--mod-table-header-top-to-text
--mod-table-header-row-top-to-text
--mod-table-min-row-height--compact
--mod-table-min-row-height-compact
--mod-table-min-row-height--spacious
--mod-table-min-row-height-spacious
--mod-table-outer-border-inline-width--quiet
--mod-table-outer-border-inline-width-quiet
--mod-table-row-background-color--quiet
--mod-table-row-background-color-quiet
--mod-table-row-checkbox-block-spacing--compact
--mod-table-row-checkbox-block-spacing-compact
--mod-table-row-checkbox-block-spacing--spacious
--mod-table-row-checkbox-block-spacing-spacious
--mod-table-thumbnail-to-text
--mod-table-visual-to-text
New Modifiers
--mod-table-avatar-size
--mod-table-avatar-size-compact
--mod-table-avatar-size-spacious
--mod-table-section-header-inline-start-spacing
--mod-table-summary-row-bottom-to-text
--mod-table-summary-row-min-height
--mod-table-summary-row-top-to-text
Removed Modifiers
--mod-table-edge-to-content
--mod-table-header-row-checkbox-block-spacing
--mod-table-avatar-size-spacious
--mod-table-row-bottom-to-text--compact
--mod-table-row-bottom-to-text--spacious
--mod-table-row-top-to-text--compact
--mod-table-row-top-to-text--spacious
--mod-table-thumbnail-block-spacing"
--mod-table-thumbnail-block-spacing-compact
--mod-table-thumbnail-block-spacing-spacious