v0.149.0
Minor Changes
-
#1257
ad7190c7Thanks @tenphi! - Added theInfoBadgecomponent — an informational icon with a tooltip. It renders as a plainItemBadgeby default and upgrades to anItemActionlink/button as soon astooronPressis provided, so the same icon can point at the docs. The badge contains its own press events (includingpreventDefaulton click), which lets it sit inside a bigger click target — a field<label>, a switch row, a table header — without activating it. When interactive, the tooltip gets a localizedClick to learn more.suffix, whichtooltipSuffixoverrides or removes.sizeissmall|medium|large(defaultmedium). Every size contributes exactly one line to the text around it, so the badge stays vertically aligned with adjacent text — in a field label, a table header, or mid-paragraph — whichever size you pick.The info icon that fields render for their
tooltipprop is now anInfoBadge, so clicking it no longer activates the field it labels.tooltip={{ title }}onItemActionandItemBadgenow accepts anyReactNodeas the title. Rich titles are no longer used as thearia-label(previously they were stringified into it) — passaria-labelfor those.ItemActionandItemBadgenow treat an explicitaria-labelas higher priority than the accessible name inferred from a stringtooltip. PreviouslyItemActionlet the tooltip win, so anaria-labelpassed alongside a string tooltip was silently dropped.