Repository navigation
Minor Changes
-
cebccc6: Button: add an opt-in
appearanceprop for the DS-2026 design.appearancetakessolid,outlinedorghost. It applies tovariant
primaryanddanger(solid,outlined) andsecondary(outlined,
ghost), and reads thecolor.button.*tokens, with separate hover and pressed
colours. Underappearancethe button uses the 2026 type (p1on medium,p2
below),semiBold,radius.small(radius.xsmallon xsmall;roundedstill
makes a pill) andelevation.z1on 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
appearancenothing changes: the seven variants, the 48px medium
height, weight 500 andsize[4]stay as they are.ButtonAppearanceis
exported.outlinedandminimalare 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.durationtokens to the theme contract:quick(100ms),short
(150ms),medium(200ms) andlong(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 onearrivekeyframe.
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
colorOverridesthe 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.textand the legacyoutlined
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. Underprefers-reduced-motion: reduceit 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 aResizeObserverwhile open and stops when it
closes. -
53b3a00: SideNav: when
typechanges 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, overanimation.duration.mediumwith the standard
easing, and nothing above it moves. A closed section isinertat once and
visibility: hiddenonce shut, so its rows leave the Tab order and the
accessibility tree as before. Underprefers-reduced-motion: reduceit opens
and closes instantly. The section's list now sits in a wrappingdivand no
longer carries thehiddenattribute. -
cfbd0ac:
colorOverridesnow brands the DS-2026 solid primary button tokens too.
primaryBackgroundsetscolor.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.