Skip to content

v2.9.2 - brand tone fixes, MCardHeader action, new component tokens

Latest

Choose a tag to compare

@Banzamel Banzamel released this 07 Nov 00:35

Nothing to change in your code unless you use tone="brand", which arrived in 2.9.1. Outside that tone every new prop and token is opt-in, and unset everything looks as in 2.9.1.

Basic users: 2.9.1 was not published on npm, so this is the first Basic version with the 2.9.1 changes. They are listed at the end.

Changed (tone="brand" only)

  • MSurface and MCard: no frame by default, outlined restores it. MCardFinance on brand has no border.

Fixed

  • Form fields on tone="brand" follow the on-colour in both themes, so inputs no longer show white on white. The scope overrides --mineral-input-bg, --mineral-option-*-bg and --mineral-neutral-rgb. Portaled popovers keep the theme.
  • Badges in the brand scope always use the on-colour and ignore --mineral-badge-text-*.

Added

  • MCardHeader: new action slot at the end of the header, with the MCardHeaderProps type.
  • --mineral-surface-brand-action-bg and --mineral-surface-brand-action-text set the filled buttons in the brand scope.
  • --mineral-table-body-bg on MDataTable, also for tables on brand in the light theme.
  • --mineral-tabs-accent-rgb on MTabs sets the active tab, hover and focus.
  • --mineral-sidebar-item-hover-bg and --mineral-sidebar-item-hover-text on MSidebar.

Note: padded outranks px and py on every tone, so use padded={false} with them.

Also in this version for Basic (from 2.9.1)

  • MReveal: elements taller than five viewports never showed. They now also reveal once they cross the viewport centre.
  • MBottomNav: new fixed app navigation bar for phones, with MAppShell support through a direct child or the bottomNav slot.
  • MSurface, MCard and MCardFinance: tone="brand", set with --mineral-surface-brand-bg and --mineral-surface-brand-on-rgb.
  • --mineral-card-finance-bg, --mineral-card-widget-bg, --mineral-card-tile-bg and --mineral-stat-value-color.

Full list with defaults: https://mineralui.io/docs/theming