Repository navigation
v0.160.0
Minor Changes
-
#1313
773cb5b0Thanks @tenphi! - Add acurrenttype toItem(plusItem.Action, and by inheritanceItemButton) and toButton. Fill, border and label are derived from the inherited text color, so the element adopts the color of whatever container it sits in — alerts, banners, dark overlays, tooltips — with nothemeto pick. The label stays fully opaque, and the type is theme-agnostic.The two components take the shape their neutral types take: on
Itemit matches theitemtype (no border, nothing painted at rest, the fill stepping in on hover/pressed/selected), while onButtonit is a standalone chip (a resting#current.03fill inside a#current.08border).
Patch Changes
-
#1310
264dca74Thanks @tenphi! - FixDisclosuretrigger corners in thecardshape: the trigger now matches the card's inner radius while collapsed and rounds only its top corners while expanded, and the change is animated. The animation followstransitionDurationso the corners stay in step with the panel.Fix
Disclosureoverflowing a flex or grid parent. The root now opts out of the automatic minimum size, so wide panel content (a code block, a table) is clipped by the panel rather than stretching the whole disclosure past its parent —width="max 100%"is no longer needed at the call site. Growing to fill a row flex parent remains the caller's decision viaflexGrow. -
#1311
aa3fd0b8Thanks @tenphi! -Board: a marquee (lasso) drag no longer selects text under it. Dragging a band across widgets used to paint a native text selection and leave stray highlighted text behind once the band was gone. The board carries amarqueemodifier (data-marquee) for the length of the gesture. -
#1311
aa3fd0b8Thanks @tenphi! -Board: widgets a marquee (lasso) currently covers now preview the selection while the pointer is still down, instead of only lighting up on release. They carry a newpre-selectedmodifier (data-pre-selected) — the selected edge with its ring dimmed — which is restylable exactly likeselectedand is never set on a widget that is already selected. -
#1311
aa3fd0b8Thanks @tenphi! -Board: a multi-widget selection now moves as one rigid block for the whole drag, and displaces the widgets standing wherever it lands instead of being pushed around by them. Previously, dragging a group up could leave it where it was while only some of the widgets above it slid down, and members with different neighbours above them ended up on different rows — letting an unrelated widget (a full-width divider, for example) land between them. Dragging a group sideways was worse: the group itself sank below the widgets it was supposed to move aside, which made those widgets look pinned in place. Members keep their exact offsets until the drag ends, at which point the board compacts as usual.