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

Update previews and get CSS coverage to pass #1606

Merged
merged 6 commits into from
Nov 15, 2022
Merged

Update previews and get CSS coverage to pass #1606

merged 6 commits into from
Nov 15, 2022

Conversation

simurai
Copy link
Contributor

@simurai simurai commented Nov 15, 2022

Description

This is a follow-up to #1602 and adds some more previews and ignores some selectors for:

  • flash
  • dropdown

To make the "CSS coverage" pass I also added the remaining selectors to IGNORED_SELECTORS for:

  • ActionList
  • Button

We can take a closer look once we move the styles from Primer CSS. And might be good to have main not fail for too long.

Integration

Does this change require any updates to code in production?

No

Merge checklist

  • Added/updated tests
  • Added/updated documentation
  • Added/updated previews

@changeset-bot
Copy link

changeset-bot bot commented Nov 15, 2022

⚠️ No Changeset found

Latest commit: 600d7b3

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

@simurai simurai temporarily deployed to review-pr-1606 November 15, 2022 08:45 Inactive
@simurai simurai added the skip changeset Pull requests that don't change the library output label Nov 15, 2022
@github-actions
Copy link
Contributor

⚠️ Visual differences found

Our visual comparison tests found UI differences. Please review the differences by viewing the files changed tab to ensure that the changes were intentional.

Review visual differences

@@ -14,16 +14,34 @@ class ComponentSpecificSelectorsTest < Minitest::Test
include Primer::RenderPreview

IGNORED_SELECTORS = {
:global => [/^\d/, ":", /\[.*\]/],
Primer::Alpha::ActionList => [/^to/],
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 moved /^to/ back to :global and also added /^from/. I think they are used for keyframe animations like:

@keyframes checkmarkIn {
  from {
    clip-path: inset(16px 0 0 0);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

and probably used for other components at some point.

@simurai simurai mentioned this pull request Nov 15, 2022
5 tasks
Comment on lines +20 to +21
".ActionListItem.ActionListItem--hasSubItem > .ActionListContent",
".ActionListItem.ActionListItem--hasSubItem>.ActionListContent",
Copy link
Contributor Author

@simurai simurai Nov 15, 2022

Choose a reason for hiding this comment

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

I had to repeat this. I assume because the whitespace around the child selector (>)?

@simurai simurai temporarily deployed to github-pages November 15, 2022 09:08 Inactive
@simurai simurai marked this pull request as ready for review November 15, 2022 11:04
@simurai simurai requested review from a team and jonrohan November 15, 2022 11:04
@jonrohan jonrohan merged commit 6132e84 into main Nov 15, 2022
@jonrohan jonrohan deleted the update-previews branch November 15, 2022 18:08
keithamus pushed a commit that referenced this pull request Nov 17, 2022
Co-authored-by: simurai <simurai@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip changeset Pull requests that don't change the library output
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants