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
📝 #4085
082862e
Thanks @castastrophe!Action menu component (now with custom styles!)
Introduces
@spectrum-css/actionmenu
, a composition ofActionButton
,Popover
, andMenu
to present action lists from a trigger. Now with custom styles!spectrum-ActionMenu
,spectrum-ActionMenu-trigger
,spectrum-ActionMenu-popover
, andspectrum-ActionMenu-menu
.Migration notes
aria-haspopup="menu"
and managesaria-expanded
according to your application logic.--spectrum-actionmenu-button-to-menu-gap
custom property.Example markup:
Menu refinements
Updates
@spectrum-css/menu
styles to align with latest Spectrum 2 design specifications and improve accessibility..is-selectableMultiple .spectrum-Menu-itemCheckbox
to.is-selectableMultiple:not(:has(.is-selectable)) .spectrum-Menu-itemCheckbox
to prevent clash with the.is-selectable
placement.Action button refinements
.is-selected
.:where()
to keep selector specificity low and prevent downstream specificity battles.Action group refinements
Aligns selection behavior of grouped items with action button updates.
:where([aria-pressed="true"], [aria-expanded="true"])
alongside.is-selected
on items to cover more accessibility use-cases while keeping specificity low.@spectrum-css/[email protected]
Minor Changes
📝 #4085
082862e
Thanks @castastrophe!Action menu component (now with custom styles!)
Introduces
@spectrum-css/actionmenu
, a composition ofActionButton
,Popover
, andMenu
to present action lists from a trigger. Now with custom styles!spectrum-ActionMenu
,spectrum-ActionMenu-trigger
,spectrum-ActionMenu-popover
, andspectrum-ActionMenu-menu
.Migration notes
aria-haspopup="menu"
and managesaria-expanded
according to your application logic.--spectrum-actionmenu-button-to-menu-gap
custom property.Example markup:
Menu refinements
Updates
@spectrum-css/menu
styles to align with latest Spectrum 2 design specifications and improve accessibility..is-selectableMultiple .spectrum-Menu-itemCheckbox
to.is-selectableMultiple:not(:has(.is-selectable)) .spectrum-Menu-itemCheckbox
to prevent clash with the.is-selectable
placement.Action button refinements
.is-selected
.:where()
to keep selector specificity low and prevent downstream specificity battles.Action group refinements
Aligns selection behavior of grouped items with action button updates.
:where([aria-pressed="true"], [aria-expanded="true"])
alongside.is-selected
on items to cover more accessibility use-cases while keeping specificity low.@spectrum-css/[email protected]
Patch Changes
Updated dependencies []:
@spectrum-css/[email protected]
Patch Changes
📝 #4085
082862e
Thanks @castastrophe!Action menu component (now with custom styles!)
Introduces
@spectrum-css/actionmenu
, a composition ofActionButton
,Popover
, andMenu
to present action lists from a trigger. Now with custom styles!spectrum-ActionMenu
,spectrum-ActionMenu-trigger
,spectrum-ActionMenu-popover
, andspectrum-ActionMenu-menu
.Migration notes
aria-haspopup="menu"
and managesaria-expanded
according to your application logic.--spectrum-actionmenu-button-to-menu-gap
custom property.Example markup:
Menu refinements
Updates
@spectrum-css/menu
styles to align with latest Spectrum 2 design specifications and improve accessibility..is-selectableMultiple .spectrum-Menu-itemCheckbox
to.is-selectableMultiple:not(:has(.is-selectable)) .spectrum-Menu-itemCheckbox
to prevent clash with the.is-selectable
placement.Action button refinements
.is-selected
.:where()
to keep selector specificity low and prevent downstream specificity battles.Action group refinements
Aligns selection behavior of grouped items with action button updates.
:where([aria-pressed="true"], [aria-expanded="true"])
alongside.is-selected
on items to cover more accessibility use-cases while keeping specificity low.@spectrum-css/[email protected]
Patch Changes
📝 #4085
082862e
Thanks @castastrophe!Action menu component (now with custom styles!)
Introduces
@spectrum-css/actionmenu
, a composition ofActionButton
,Popover
, andMenu
to present action lists from a trigger. Now with custom styles!spectrum-ActionMenu
,spectrum-ActionMenu-trigger
,spectrum-ActionMenu-popover
, andspectrum-ActionMenu-menu
.Migration notes
aria-haspopup="menu"
and managesaria-expanded
according to your application logic.--spectrum-actionmenu-button-to-menu-gap
custom property.Example markup:
Menu refinements
Updates
@spectrum-css/menu
styles to align with latest Spectrum 2 design specifications and improve accessibility..is-selectableMultiple .spectrum-Menu-itemCheckbox
to.is-selectableMultiple:not(:has(.is-selectable)) .spectrum-Menu-itemCheckbox
to prevent clash with the.is-selectable
placement.Action button refinements
.is-selected
.:where()
to keep selector specificity low and prevent downstream specificity battles.Action group refinements
Aligns selection behavior of grouped items with action button updates.
:where([aria-pressed="true"], [aria-expanded="true"])
alongside.is-selected
on items to cover more accessibility use-cases while keeping specificity low.@spectrum-css/[email protected]
Patch Changes
Updated dependencies [
082862e
]: