Skip to content

@primer/react@38.20.0

Latest

Choose a tag to compare

@primer primer released this 15 Apr 14:33
· 4 commits to main since this release
aeffb84

Minor Changes

  • #7723 ec6c88f Thanks @liuliu-dev! - Add Card component with subcomponents: Card.Icon, Card.Image, Card.Heading, Card.Description, Card.Menu, and Card.Metadata

  • #7725 d7b9313 Thanks @TylerJDev! - AnchoredOverlay: Remove polyfill for CSS Anchor Positioning, use primer/behaviors as fallback. Ensure overlays take available space.

  • #7752 d7380a7 Thanks @liuliu-dev! - Breadcrumbs: Graduate primer_react_breadcrumbs_overflow_menu feature flag, making the overflow menu behavior always-on.

  • #7733 b9211db Thanks @francinelucca! - Overlay: Graduate primer_react_overlay_max_height_clamp_to_viewport feature flag

    The max-height of overlays is now clamped to the viewport height by default using min(size, 100dvh). This prevents overlays from extending beyond the viewport on smaller screens.

  • #7698 5c34ab4 Thanks @hectahertz! - Timeline: add variant prop to Timeline.Badge for built-in color schemes (accent, success, attention, severe, danger, done, open, closed, sponsors)

Patch Changes

  • #7738 f5f2869 Thanks @francinelucca! - ActionMenu, Table: Fix component mutation issue where Object.assign was modifying original @primer/react components. Now uses wrapper components to avoid side effects.

  • #7747 b7dfb78 Thanks @copilot-swe-agent! - Fix IssueLabelToken text contrast in light theme by updating the lightness-switch formula to use a division-based approach that properly produces a binary switch value for selecting black vs white text

  • #7739 efa7af8 Thanks @copilot-swe-agent! - Spinner: Remove feature flag primer_react_spinner_synchronize_animations, treat it as always enabled.

  • #7746 30206c4 Thanks @jonrohan! - Update TokenTextContainer line-height to use primer primitives CSS variable var(--base-text-lineHeight-normal)