Skip to content

Conversation

@langermank
Copy link
Contributor

@langermank langermank commented Jan 23, 2024

  • Moves theme into the standard preview.js file
  • Follows same convention as primer/primitives
  • Imports Primer CSS to access legacy CSS vars (match dotcom environment)
  • Update all theme view CSS

I ran a bunch of different test scenarios in this PR: #4172 don't be alarmed by the snapshot tests, I have resolved everything 🔥

@langermank langermank requested review from a team and mperrotti January 23, 2024 22:29
@changeset-bot
Copy link

changeset-bot bot commented Jan 23, 2024

⚠️ No Changeset found

Latest commit: ff3dda0

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@langermank langermank added the skip changeset This change does not need a changelog label Jan 23, 2024
@langermank langermank requested a review from joshblack January 23, 2024 22:30
@github-actions
Copy link
Contributor

github-actions bot commented Jan 23, 2024

size-limit report 📦

Path Size
dist/browser.esm.js 104.47 KB (0%)
dist/browser.umd.js 105.11 KB (0%)

@langermank langermank added the update snapshots 🤖 Command that updates VRT snapshots on the pull request label Jan 23, 2024
@github-actions github-actions bot temporarily deployed to storybook-preview-4175 January 23, 2024 23:02 Inactive
@github-actions github-actions bot removed the update snapshots 🤖 Command that updates VRT snapshots on the pull request label Jan 23, 2024
@primer primer bot temporarily deployed to github-pages January 23, 2024 23:09 Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-4175 January 23, 2024 23:10 Inactive
@langermank langermank added the update snapshots 🤖 Command that updates VRT snapshots on the pull request label Jan 24, 2024
@github-actions github-actions bot temporarily deployed to storybook-preview-4175 January 24, 2024 21:32 Inactive
@langermank langermank added update snapshots 🤖 Command that updates VRT snapshots on the pull request and removed update snapshots 🤖 Command that updates VRT snapshots on the pull request labels Jan 24, 2024
@github-actions github-actions bot removed the update snapshots 🤖 Command that updates VRT snapshots on the pull request label Jan 24, 2024
@primer primer bot temporarily deployed to github-pages January 24, 2024 21:52 Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-4175 January 24, 2024 21:52 Inactive
@langermank langermank added the update snapshots 🤖 Command that updates VRT snapshots on the pull request label Jan 25, 2024
@github-actions github-actions bot removed the update snapshots 🤖 Command that updates VRT snapshots on the pull request label Jan 25, 2024
@@ -1,2 +1 @@
@import '@primer/css/dist/primitives.css';
@import '@primer/css/dist/color-modes.css';
@import 'https://unpkg.com/@primer/[email protected]/dist/color-modes.css';
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 need this import to unpkg because we're going to be using the newer version of primitives?

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 think its just easier to pull this from unpkg because its temporary and we rarely make releases in Primer CSS these days. I should probably make it @latest instead though..

Copy link
Member

@joshblack joshblack left a comment

Choose a reason for hiding this comment

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

Just had a couple of comments!

langermank and others added 2 commits January 25, 2024 11:30
Copy link
Contributor

@mperrotti mperrotti left a comment

Choose a reason for hiding this comment

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

Looks good to me assuming that the higher contrast "toggle overlay" button is intentional.

// we'll sort alphabetically
const preview = {
parameters: {
actions: {argTypesRegex: '^on[A-Z].*'},
Copy link
Contributor

Choose a reason for hiding this comment

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

Clever. Is this to filter out things like onClick?

@langermank langermank enabled auto-merge January 25, 2024 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip changeset This change does not need a changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants