Skip to content
Compare
Choose a tag to compare
@primer-css primer-css released this 20 Mar 14:25
· 411 commits to main since this release
e81dfea

Minor Changes

  • #200 f8e273a Thanks @josepmartins! - Add label and test coverage to the Card component

    ⚠️ This update contains a breaking change.

    Before:

    <Card label="Read more">...</Card>

    after:

    <Card ctaText="Read more">...</Card>
  • #205 d8974c1 Thanks @rezrah! - ### React

    Added new ActionMenu component

    Use ActionMenu to display a list of actions or selections that expand through a trigger button.

    <ActionMenu>
      <ActionMenu.Button>Open menu</ActionMenu.Button>
      <ActionMenu.Overlay>
        <ActionMenu.Item value="Copilot" selected>
          Copilot
        </ActionMenu.Item>
        <ActionMenu.Item value="Codespaces">Codespaces</ActionMenu.Item>
        <ActionMenu.Item value="CodeQL">CodeQL</ActionMenu.Item>
      </ActionMenu.Overlay>
    </ActionMenu>

    🔗 See the documentation for more details and usage examples.

Patch Changes

  • #204 469af45 Thanks @TylerJDev! - Adds outline to Button variants (Primary, Secondary) when in High Contrast Mode (HCM)

    Before After
    Button 'Primary' variant, shows a button with no outline in HCM Button 'Primary' variant, shows a button with a yellow outline in HCM
    Button 'Primary' variant, shows a disabled button with no outline in HCM Button 'Primary' variant, shows a disabled button with a green outline in HCM
  • #217 cb892f8 Thanks @rezrah! - Avatar now correctly forwards native img attributes. This includes loading, decoding, and crossOrigin attributes.