Skip to content

v7.3.0

Latest

Choose a tag to compare

@github-actions github-actions released this 03 Dec 19:30
· 4 commits to main since this release
1776b60

Minor Changes

  • cebccc6: Button: add an opt-in appearance prop for the DS-2026 design.

    appearance takes solid, outlined or ghost. It applies to variant
    primary and danger (solid, outlined) and secondary (outlined,
    ghost), and reads the color.button.* tokens, with separate hover and pressed
    colours. Under appearance the button uses the 2026 type (p1 on medium, p2
    below), semiBold, radius.small (radius.xsmall on xsmall; rounded still
    makes a pill) and elevation.z1 on solid. Heights are 48px, 36px and 28px, so
    medium still lines up with inputs. The loading spinner takes the label colour,
    and disabled keeps the 30% fade.

    Without appearance nothing changes: the seven variants, the 48px medium
    height, weight 500 and size[4] stay as they are. ButtonAppearance is
    exported. outlined and minimal are marked deprecated in favour of
    appearance, and still work.

    colorOverrides: the solid primary hover and pressed colours now stop deepening
    where the label would drop below 4.5:1 on them, so a bright brand under dark
    text keeps a readable press state.

  • 102922f: Adds animation.duration tokens to the theme contract: quick (100ms), short
    (150ms), medium (200ms) and long (300ms), the same in every theme. They are
    the durations components already used, so nothing moves differently. CopyButton,
    StepProgress and StageStatusList now read them, and CopyButton and StepProgress
    share one arrive keyframe.

Patch Changes

  • dc07d22: Button: the primary appearance="outlined" label now reads at 4.5:1 on the page
    and on its hover and pressed fills.

    It takes a new token, color.button.primary.outlined.label (green900 in base).
    Base's green800 fell to 4.36:1 on hover and 4.09:1 on pressed. Under
    colorOverrides the label is the brand where it already reads on all three, and
    otherwise the brand shaded until it does, so a bright brand no longer draws an
    illegible label. color.button.primary.outlined.text and the legacy outlined
    button are unchanged.

  • 53b3a00: Avatar: an image that loads after the avatar is drawn now fades in over the
    fallback (animation.duration.medium, opacity only) instead of appearing in one
    frame, so a list of avatars loading at different times no longer flickers. An
    image the browser already holds is there from the first paint. The image is
    clear until it has loaded, so a large image no longer paints in part over the
    initials. Under prefers-reduced-motion: reduce it appears at once.

  • 57554a7: FileRow: a file that completes while its bar shows keeps the bar until it has
    filled to the end, then the outcome fades in where the bar was and its tick
    grows in, 350 ms in all. A failure fades in without filling the bar. The row
    keeps its height, and the outcome is announced once the bar has finished. A row
    first drawn with an outcome, and every row under
    prefers-reduced-motion: reduce, shows the outcome at once, as before.

  • 53b3a00: Paint-only colour fades where a state changes on screen: the StepProgress step
    that becomes current takes its fill, ring and ink over
    animation.duration.medium; the FileDropZone badge takes its drag colours as it
    lifts (short); an ActivityBadge whose status changes fades its dot and halo to
    the new colour (short). Nothing moves, and the first paint is unchanged.

  • 57554a7: Positioner: an open popover, tooltip or menu now places itself again when its
    trigger or itself changes size, for example once a web font has loaded and
    redrawn a label. Before, it was placed only when it opened, on a scroll or a
    window resize, or when it rendered, so a size change in between left it off its
    trigger. It watches both with a ResizeObserver while open and stops when it
    closes.

  • 53b3a00: SideNav: when type changes after the first paint, the labels fade in
    (animation.duration.short, opacity only) instead of appearing in one frame.
    The labels of the first paint are simply there, and nothing fades under
    prefers-reduced-motion: reduce. The rail's width is still the shell's: a new
    Animated shell story shows a shell animating its column with
    grid-template-columns.

  • 57554a7: SideNav: a section now slides open and shut instead of snapping. The rows below
    it move with the caret, over animation.duration.medium with the standard
    easing, and nothing above it moves. A closed section is inert at once and
    visibility: hidden once shut, so its rows leave the Tab order and the
    accessibility tree as before. Under prefers-reduced-motion: reduce it opens
    and closes instantly. The section's list now sits in a wrapping div and no
    longer carries the hidden attribute.

  • cfbd0ac: colorOverrides now brands the DS-2026 solid primary button tokens too.
    primaryBackground sets color.button.primary.solid.default, its hover,
    pressed and border are shaded from it by the same steps as base's own ramp, and
    the label takes the same colour as the current primary button. Nothing reads
    these tokens yet, so nothing renders differently.