Skip to content

@reapit/elements_v5.0.0-beta.30

Pre-release
Pre-release
Compare
Choose a tag to compare
@kurtdoherty kurtdoherty released this 15 Jun 22:44
· 117 commits to main since this release
53c9b31

Notable changes

TopBar

  • Many of the components related to the TopBar have been refactored and are now subcomponents of the TopBar itself;
  • In general, this means consumers should now prefer use of TopBar.NavItem over direct use of the underlying components;
  • The TopBar itself now renders as a <header> element, not a <nav> element.
  • There's two new layout and a11y helpers for main nav items (TopBar.MainNav) and secondary nav items (TopBar.SecondaryNav);
  • There's a new TopBar.BrandLogo component that provides product logos within the Reapit brand.
  • Breaking changes:
    • TopBar.NavItem and TopBar.NavIconItem will always render as a link element; buttons are no longer supported;
    • TopBar.NavMenuItem and TopBar.NavIconMenuItem combine a button-based item with a built-in Menu. These should be used for any nav items that require a dropdown menu;
    • TopBar.NavSearchButton no longer changes to an icon-only button on small breakpoints. Rather, a separate TopBar.NavSearchIconItem is available. Further, the responsive behaviour is now handled by a new TopBar.NavSearch component.

Other

  • Menu group dividers are now baked into Menu.Group
  • CSS variables updated to included latest Design System updates
  • Design token JSON files are now preprocessed (object keys sorted alphabetically) allowing for better PR diffs when Design have reordered their variables in Figma.

All commits

New Contributors

Full Changelog: https://github.com/reapit/elements/compare/@reapit/elements_v5.0.0-beta.29...@reapit/elements_v5.0.0-beta.30