Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New release available "@primer/[email protected]" #6

Open
3 tasks
github-actions bot opened this issue Jan 17, 2025 · 1 comment
Open
3 tasks

New release available "@primer/[email protected]" #6

github-actions bot opened this issue Jan 17, 2025 · 1 comment
Labels

Comments

@github-actions
Copy link

A new release is available: https://github.com/primer/brand/releases/tag/%40primer/react-brand%400.46.0.

Changelog

🔗 Permalink to v0.46.0. documentation

Minor Changes

  • #884 bbdf7f2f Thanks @rezrah! - Anti-aliasing is now applied automatically to all Text instances except under these conditions:

    • When explicitly disabled via hasAntiAliasing={false}
    • When font weight is light or extralight AND size is '100' or '200'
    • When size is 100 (regardless of weight)
  • #893 d3c1ee2a Thanks @rezrah! - Updated secondary Button variant borders from subtle to default color for improved contrast.

  • #890 4692aeea Thanks @joshfarrant! - Enabled keyboard navigation in the IDE component and made the contents navigable by screen readers.

    ⚠️ Breaking changes

    The alternativeText prop on the IDE component has been removed in favour of more granular descriptive text.

    Before
    <IDE alternativeText="A user asks how to concatenate arrays in JavaScript, Copilot demonstrates using the concat method, and the user confirms it worked.">
      <IDE.Chat />
    </IDE>
    After
    <IDE>
      <IDE.Chat alternativeText="A user asks how to concatenate arrays in JavaScript, Copilot demonstrates using the concat method, and the user confirms it worked." />
    </IDE>
    Before
    <IDE alternativeText="TypeScript sentiment analysis function with D3.js visualization.">
      <IDE.Editor
        files={[
          {
            name: 'index.js',
          },
        ]}
      />
    </IDE>
    After
    <IDE>
      <IDE.Editor
        files={[
          {
            name: 'index.js',
            alternativeText: 'TypeScript sentiment analysis function with D3.js visualization.',
            // ...
          },
        ]}
      />
    </IDE>

    🔗 See the documentation for example usage, and more information on accessibility in the IDE component

Patch Changes

  • #887 8a49db27 Thanks @joshfarrant! - Link component improvements.

    • Fixed a bug in the Link component where the underline wouldn't take the full width when arrowDirection='none'.
    • Prop options are also now exported from the package root, specifically:
      • LinkSizes
      • LinkArrowDirections
  • #879 4f92311f Thanks @rezrah! - Added toggleColor prop to FAQ.Question and Accordion.Heading

    <FAQ>
      <FAQ.Item>
        <FAQ.Question toggleColor="green-blue">...</FAQ.Question>
        <FAQ.Answer>...</FAQ.Answer>
      </FAQ.Item>
    </FAQ>
    <Accordion>
      <Accordion.Heading toggleColor="green-blue">...</Accordion.Heading>
      <Accordion.Content>...</Accordion.Content>
    </Accordion>

    🔗 See the documentation for examples and color options

  • #894 aecc8d8f Thanks @rezrah! - Improvements to duotone text in River component. Now supports <b> elements using a semi-bold font weight.

    🔗 See documentation for usage examples

  • #892 e85c7316 Thanks @rezrah! - Upgraded dev dependencies for @types/node and eslint-plugin-github

  • #883 965a7865 Thanks @rezrah! - Visual spacing updates to RiverBreakout

    • Reduced vertical gap between the main text and link.
    • Applied a maximum width to the main text.
  • #872 872bdcf0 Thanks @joshfarrant! - VideoPlayer tooltips now show when the associated control receives focus.

❗ Dotcom integration checklist

Note

GitHub Staff only

Please ensure these items are checked before merging.

  • Performed successful integration test with github/github
  • Manually verify regressions on following pages against production:
  • /features/copilot
  • /enterprise
  • /enterprise/advanced-security
  • /articles/security
  • /articles/security/what-is-security-testing
  • /features/preview
  • /features/copilot/getting-started and /features/copilot
  • /solutions/devops
  • /education
  • /mobile
  • /contact-sales
  • /about/diversity
Copy link
Author

Smoke test results

  • Updated secondary Button variant borders from subtle to default color for improved contrast. 🟢

    Works as expected. All non-overridden secondary buttons now use darker outlines.

    Before After

    Screenshot 2025-01-17 at 13 51 49

    Screenshot 2025-01-17 at 13 51 41

    Before After

    Screenshot 2025-01-17 at 13 51 17

    Screenshot 2025-01-17 at 13 51 21

  • Added new accordion toggle color variables 🟢

    Works as expected. Toggle colors in FAQs now accept color overrides

    E.g.
    Screenshot 2025-01-17 at 13 48 32

  • Visual spacing updates to RiverBreakout 🟢

    Works as expected. Breakout content now applies a max width and reduced spacing between paragraph and CTA

    Before After

    Screenshot 2025-01-17 at 13 57 20

    Screenshot 2025-01-17 at 13 57 15

  • Improvements to duotone text in River component 🟢

    Works as expected to documentation guidelines.

    E.g.

    Screenshot 2025-01-17 at 13 56 26

  • Anti-aliasing is now applied automatically to all Text instances 🟢

    Works as expected. Only applies in dark mode text instances. E.g.

    Screenshot 2025-01-17 at 14 57 20

    ⚠️ This is something to keep an eye on during further regression testing, due to previous rollbacks of AA. Recommend checking as many pages as possible for legibility issues.

Release testing status: Ready to release 🟢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants