Releases: hashicorp/design-system
@hashicorp/[email protected]
Minor Changes
Modal - Added returnFocusTo argument to control where the browser focus is returned once the modal is closed
Flyout - Added returnFocusTo argument to control where the browser focus is returned once the flyout is closed
CodeBlock - Added lineNumberStart option to set custom starting number for line numbering
SuperSelect::Multiple - Added @resultCountMessage argument to enable override
Patch Changes
Dropdown
- Fixed content being preserved in the DOM when closed
- Removed the
isOpenyielded argument - Added
@preserveContentInDomto optionally control rendering of the content
Modal - Fixed isDismissDisabled functionality
Flyout - Removed isDismissDisabled from signature (not an actual argument)
SuperSelect - Update the the default state of selected list items to Foreground / Primary to match other list items and the Dropdown.
SuperSelect::Multiple - Fixed placeholder style and layout
Dropdown - Update the color of the text and icons in the selected state checkmark list item to match the styling of the ListItems (Radio and Checkbox).
CodeBlock - Decoupled the display of line numbers from highlightLines
Dropdown - Fixed dropdown content not being preserved when interacted with
Upgraded ember-style-modifier to 4.4.0
🔄 Updated dependencies:
- @hashicorp/[email protected]
@hashicorp/[email protected]
Minor Changes
Dropdown - Made the isOpen state available in the yielded block
Patch Changes
IconTile - Fixed @color argument type signature
Interactive - Aligned types with LinkTo
DialogPrimitive - Fixed issue with box-sizing inheritance
Modal/Flyout - Updated box-sizing inheritance via DialogPrimitive fix
Upgraded eslint-plugin-ember to 12.2.0
AppFooter, AppFrame, SideNav - refactored subcomponents to use TemplateOnlyComponent instead of empty classes.
RadioCard
- Fixed selected border colors to match Figma and interactive states.
- Updated icon, label, and description colors to use
disabled-foregroundwhen
theRadioCardis disabled.
MaskedInput - Changed textarea scrollbar-width to "thin" to reduce overlap with toggle button.
CodeBlock - Changed textarea scrollbar-width to "thin" to reduce overlap with copy button.
Removed ember-keyboard dependency
Tabs - Fixed signatures for subcomponents
Table - Fixed signatures for subcomponents
BadgeCount - updated the type of the text argument to allow numbers
TooltipButton - made the default value for the placement argument 'top' and fixed the type definition
TooltipButton - made the extraTippyOptions argument optional and allowed to be a partial object
DialogPrimitive - added a guard so the yielded close function is always defined'
Hds::SideNav - Fixed a couple of bugs where SideNav would remain inert when no longer minimized (or would not be inert when minimized)
#2431 - Thanks @DingoEatingFuzz for the contribution! 🙏
Button - aligned type names to convention
Fixed issue with icon sprite not initiated
@hashicorp/[email protected]
@hashicorp/[email protected]
Minor Changes
Hds::Table
- Added
@selectableColumnKeyargument which enables sorting by row selection state and specifies the corresponding selection state key.
Hds::Table::Tr
- Added
@selectableColumnKeyargument which enables sorting by row selection state and specifies the corresponding selection state key. - Added
@sortBySelectedOrderargument which determines the state of the sort button in the selected item column. - Added
@onClickSortBySelectedargument which is the callback for the sort button in the selected item column.
Hds::Table::ThSelectable
- Added
@onClickSortBySelectedargument which is the callback for the sort button in the selected item column. - Added
@sortBySelectedOrderargument which determines the state of the sort button in the selected item column.
Patch Changes
SideNav: remove usage of Ember.testing because it is deprecated.
CopyButton - Updated icon colors to match interactive states of the component.
CopySnippet - Prevent the color from adhering to interactive states when
status is success or error.
Stepper - Updated to use semantic token over palette token in
Stepper::Indicator::Step.
Dropdown, RadioCard, SuperSelect, Stepper, Table - Fixed optional arguments in signatures
Dropdown::Toggle::Chevron - fix subcomponent signature
hds-clipboard modifier - extend error when copy action fails
Hds::Pagination::Compact & Hds::Pagination::Numbered
- Added assertion and more strict typing to ensure that a routing argument (
@model,@models, or@route) are present when using@onPageChangeto control routing.
🔄 Updated dependencies:
- @hashicorp/[email protected]
@hashicorp/[email protected]
@hashicorp/[email protected]
Minor Changes
SuperSelect - Converted components to TypeScript
SideNav - Added a default value of "#hds-main" for a11yRefocusSkipTo
AppHeader - Changed default value of a11yRefocusSkipTo from "#main" to "#hds-main"
AppFrame::Main - Added id with default value of "hds-main" which a11yRefocusSkipTo points to
simplify components reexports and add types reexports
- update
HdsCardreexport to reflect correct component nameHdsCardContainer
#2320 - Thanks @aklkv for the contribution! 🙏
AppHeader:
- Hide the closed menu content in mobile view using CSS instead of conditionally rendering/not rendering the menu content.
- Add
NavigationNarratorwith associated arguments to provide a "skip link".
Accordion: Added @titleTag argument
Alert: Added @tag argument to [A].Title
ApplicationState: Updated the @titleTag argument to only accept "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6"
CodeBlock: Added @tag argument to [CB].Title
DialogPrimitive: Added @titleTag argument to DialogPrimitive::Header
Hds::Pagination - Converted component to Typescript
Hds::SideNav::Header::IconButton - Deprecate the component. Use the Hds::Button component with isIconOnly set to true as a replacement.
Dropdown::ListItem::Interactive
- Adds a yielded block.
- Yields the
Hds::Badgecomponent. - Deprecates the
@textargument.
New codemod: v4/dropdown-list-item-interactive
- Converts
Dropdown::ListItem::Interactive@textarguments to content within a yielded block.
Flyout: Changed the HTML element wrapping the tagline and title from a <div> to a <h1>
Modal: Changed the HTML element wrapping the tagline and title from a <div> to a <h1>
Dropdown - added @enableCollisionDetection and @isOpen arguments
Dropdown, Breadcrumb::Truncation - replaced MenuPrimitive with PopoverPrimitive
MenuPrimitive - marked as deprecated and will be removed in the next major version
AppFrame:
- Modified sticky/fixed position to turn off when viewport height is under 480px in height
- Refactored styles to make
AppFrameresponsible for sticky/fixed layout ofSideNavandAppHeader
AppHeader:
- Styled inoperable actions as disabled (which occurs when the
SideNavis expanded in mobile view)
SideNav:
- Removed the
withAppHeaderoption as it is no longer needed.
Table - Converted component and sub-components to TypeScript
Patch Changes
DismissButton, RadioCard::Group, RichTooltip::Toggle - Type safety fixes
SideNav & AppHeader - Fixed styling issue to prevent Button and Dropdown nested within another Dropdown from inheriting dark theme.
AppHeader - Fixed issue with mobile menu to prevent tabbing to hidden content and hiding it from assistive technology when closed.
Breadcrumb: fix background hover color for Breadcrumb::Truncation
Update ember-a11y-refocus to 4.1.3
Accordion: changed the default name of the Accordion item toggles. Now, they are labelled by the content in the Accordion title.
BadgeCount: updated the color tokens to use palette tokens.
Badge: update the color tokens to use palette tokens.
Stepper::Indicator::Task: Updated palette tokens to use semantic tokens.
Migrated all internal instances of FlightIcon to Hds::Icon
🔄 Updated dependencies:
- @hashicorp/[email protected]
@hashicorp/[email protected]
Minor Changes
Dropdown::ListItem::Interactive
- Adds a yielded block.
- Yields the
Hds::Badgecomponent. - Deprecates the
@textargument.
New codemod: v4/dropdown-list-item-interactive
- Converts
Dropdown::ListItem::Interactive@textarguments to content within a yielded block.
@hashicorp/[email protected]
Minor Changes
Icon - Added component:
Hds::Icon is meant to replace usage of the FlightIcon component from ember-flight-icons.
- Displays
blockby default. (FlightIcondisplaysinline-blockby default) - Exposes a set of predefined "foreground" colors via the
@colorargument
CodeBlock: Converted component to TypeScript
TooltipButton: Converted component to TypeScript
@hashicorp/[email protected]
Minor Changes
v4/icon
Adds a codemod for converting FlightIcon components to Hds::Icon components
@hashicorp/[email protected]
Minor Changes
AppHeader - Added design tokens:
--token-app-header-height--token-app-header-home-link-size--token-app-header-logo-size