Skip to content
Compare
Choose a tag to compare
@primer-css primer-css released this 25 Apr 10:43
· 157 commits to main since this release
8c57c9c

Minor Changes

Patch Changes

  • #568 40a129d Thanks @rezrah! - Added support for optional Button and sub menu's in SubNav component.

    Also added fullWidth prop to optionally remove the default component padding.

    <SubNav>
      <SubNav.Heading href="#">Heading</SubNav.Heading>
      <SubNav.Link href="#">Link</SubNav.Link>
      <SubNav.Link href="#">Link</SubNav.Link>
      <SubNav.Link href="#">Link</SubNav.Link>
      <SubNav.Link href="#" aria-current="page">
        Link
        <SubNav.SubMenu>
          <SubNav.Link href="#">Link feature one</SubNav.Link>
          <SubNav.Link href="#">Link feature two</SubNav.Link>
          <SubNav.Link href="#">Link feature three</SubNav.Link>
          <SubNav.Link href="#">Link feature four</SubNav.Link>
        </SubNav.SubMenu>
      </SubNav.Link>
      <SubNav.Link href="#">Link</SubNav.Link>
      <SubNav.Link href="#">Link</SubNav.Link>
      <SubNav.Action href="#" variant="secondary">
        Optional CTA
      </SubNav.Action>
    </SubNav>
  • #566 eaeb50e Thanks @joshfarrant! - Adjusted block padding of small button controls from 12px to 8px.

    This change affects all small size Button and ActionMenu instances.

  • #575 89d6590 Thanks @rezrah! - Added none optiona to arrowDirection prop of Link component. This value removes the arrow entirely.

    <Link arrowDirection="none" {...rest} />
  • #573 e76c92b Thanks @joshfarrant! - Add trailingComponent prop to Hero