braid-design-system@33.8.0
Minor Changes
-
MenuRenderer, OverflowMenu: Add automatic menu positioning to ensure menus are placed within viewport bounds. (#1738)
Menus now detect when they would render outside window boundaries and automatically adjust their position.
This includes flipping their vertical placement and/or aligning to window edges as needed to ensure menus remain fully visible. -
Autosuggest: Add entrance animation to suggestions dropdown. (#1738)
-
TooltipRenderer: Improve tooltip positioning at viewport edges. (#1738)
Subtly adjusts tooltip edge padding and minimum arrow margins when triggered near window boundaries to ensure optimal arrow placement.
-
ButtonIcon: Add optional
aria-describedbyprop (#1785)aria-describedbycan be used in addition tolabelto associate additional descriptive elements with theButtonIcon.EXAMPLE USAGE:
<ButtonIcon icon={<IconDelete />} label="Delete" aria-describedby="descriptionId" /> <Text id="descriptionId">Deleted items will be permanently removed after 30 days.</Text>
Patch Changes
-
Ensure the
inputelement fills the visual field boundary. (#1738)Previously, when a field action such as "clear" or "toggle password visibility" was present, the native
inputelement would shrink to accommodate.This change ensures the
inputdoes not change size, instead applying padding to prevent the field value from colliding with the action.
The native browser styles for features such as [:autofill] now visually fill the field. -
Autosuggest, MenuRenderer, OverflowMenu, TooltipRenderer: Refactor the internal layout of floating elements for improved consistency. (#1738)
-
Dialog, Drawer: Ensure that only elements outside the
DialogorDrawerarearia-hiddenwhen open (#1792)Fixes an issue where the close button inside the
DialogorDrawerwas incorrectly inside anaria-hiddenregion. -
useToast: Simplify internal logic, refining how the theme is applied to Toasts (#1797)
-
Autosuggest: Ensure suggestions dropdown is visible, even when
Autosuggestis inside a container with overflow hidden. (#1738)