Skip to content

Conversation

langermank
Copy link
Contributor

@langermank langermank commented Oct 24, 2023

This has no visual change, and is for a test in dotcom where I'm targeting these CSS variables.

Changelog

  • Use Primitives v8 color tokens for the default and outline border colors including a fallback

Rollout strategy

  • Patch release
  • Minor release
  • Major release; if selected, include a written rollout or migration plan

Testing & Reviewing

There should be no visual changes in this PR. Check that the visual regression snapshots look normal.

Merge checklist

  • Added/updated tests
  • Added/updated documentation
  • Added/updated previews (Storybook)
  • Changes are SSR compatible
  • Tested in Chrome
  • Tested in Firefox
  • Tested in Safari
  • Tested in Edge

Take a look at the What we look for in reviews section of the contributing guidelines for more information on how we review PRs.

@langermank langermank requested review from a team and mperrotti October 24, 2023 18:44
@changeset-bot
Copy link

changeset-bot bot commented Oct 24, 2023

🦋 Changeset detected

Latest commit: 5e244b5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Oct 24, 2023

size-limit report 📦

Path Size
dist/browser.esm.js 104.69 KB (+0.07% 🔺)
dist/browser.umd.js 105.27 KB (+0.07% 🔺)

@github-actions github-actions bot temporarily deployed to storybook-preview-3861 October 24, 2023 18:51 Inactive
@langermank langermank temporarily deployed to github-pages October 24, 2023 18:51 — with GitHub Actions Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-3861 October 24, 2023 18:52 Inactive
@langermank langermank temporarily deployed to github-pages October 24, 2023 19:14 — with GitHub Actions Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-3861 October 24, 2023 19:14 Inactive
@langermank langermank marked this pull request as draft October 24, 2023 20:24
@joshblack joshblack added the update snapshots 🤖 Command that updates VRT snapshots on the pull request label Oct 24, 2023
@github-actions github-actions bot removed the update snapshots 🤖 Command that updates VRT snapshots on the pull request label Oct 24, 2023
@langermank langermank temporarily deployed to github-pages October 24, 2023 21:03 — with GitHub Actions Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-3861 October 24, 2023 21:04 Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-3861 October 24, 2023 21:04 Inactive
@import '@primer/primitives/tokens-next-private/css/functional/themes/dark-dimmed.css';
@import '@primer/primitives/tokens-next-private/css/functional/themes/dark-high-contrast.css';
@import '@primer/primitives/tokens-next-private/css/functional/themes/dark-tritanopia.css';
/* temporarily disabiling these to ensure visual regression tests work on production code
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we want to keep these disabled in storybook?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to add a toolbar addon to let you toggle them on, like how we have it in Primer View Components Lookbook

primitives toggle

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, should we do that in a different PR though and get this one quickly?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah totally agree

'&:hover:not([disabled])': {
backgroundColor: 'btn.hoverBg',
borderColor: 'btn.hoverBorder',
borderColor: `var(--button-default-borderColor-hover, ${theme?.colors.btn.hoverBorder})`,
Copy link
Member

@siddharthkp siddharthkp Oct 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ has a fallback 10/10

border-radius: 6px;
border: 1px solid;
border-color: rgba(31,35,40,0.15);
border-color: var(--button-default-borderColor-rest,rgba(31,35,40,0.15));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ makes sense, ActionMenu uses Button

@siddharthkp

This comment was marked as resolved.

Copy link
Member

@siddharthkp siddharthkp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, the snapshot changes are intentional!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants