-
Notifications
You must be signed in to change notification settings - Fork 116
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
Conversation
|
|
@@ -14,16 +14,34 @@ class ComponentSpecificSelectorsTest < Minitest::Test | |||
include Primer::RenderPreview | |||
|
|||
IGNORED_SELECTORS = { | |||
:global => [/^\d/, ":", /\[.*\]/], | |||
Primer::Alpha::ActionList => [/^to/], |
There was a problem hiding this comment.
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.
".ActionListItem.ActionListItem--hasSubItem > .ActionListContent", | ||
".ActionListItem.ActionListItem--hasSubItem>.ActionListContent", |
There was a problem hiding this comment.
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 (>
)?
Co-authored-by: simurai <simurai@users.noreply.github.com>
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
No
Merge checklist
Added/updated documentation