@hashicorp/design-system-components@4.10.0
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
HdsCard
reexport 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
NavigationNarrator
with 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::Badge
component. - Deprecates the
@text
argument.
New codemod: v4/dropdown-list-item-interactive
- Converts
Dropdown::ListItem::Interactive
@text
arguments 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
AppFrame
responsible for sticky/fixed layout ofSideNav
andAppHeader
AppHeader
:
- Styled inoperable actions as disabled (which occurs when the
SideNav
is expanded in mobile view)
SideNav
:
- Removed the
withAppHeader
option 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/design-system-tokens@2.2.1