Repository navigation
v2.9.1 - MBottomNav, brand tone, card background tokens, MReveal fix
Nothing to change in your code: every new prop and token is opt-in, and unset everything looks as in 2.9.0. The one behaviour change is the MReveal fix below.
Fixed
- MReveal: elements taller than five viewports never showed, because the reveal waited for 20% of the element. It now also reveals once an element crosses the viewport centre, so tall sections always show.
once={false},trigger="mount",prefers-reduced-motionand shorter elements behave as before.
Added
- MBottomNav: new component in Basic and Pro. A fixed app navigation bar for phones, as a
navwitharia-current, not a tablist. Items take icons, count or dot badges, links or router components, and scroll sideways when they do not fit. Honours the safe area. Public components: 178 → 179. - MAppShell: a direct MBottomNav child or the new
bottomNavslot renders outside the main column, and.app-mainkeeps content clear of the bar through--mineral-bottom-nav-height, which is 0 without a bar. - MSurface, MCard and MCardFinance:
tone="brand"fills the surface with its colour and moves everything inside to an on-colour. Set it with--mineral-surface-brand-bg(a gradient works) and--mineral-surface-brand-on-rgb. White on the default primary is about 2.8:1, so check the contrast of small text. - Card background tokens:
--mineral-card-finance-bg,--mineral-card-widget-bg,--mineral-card-tile-bg. They fall back to the current backgrounds. - MCardStat:
--mineral-stat-value-color.
Full list with defaults: https://mineralui.io/docs/theming