Skip to content

postcss-gap-properties: fix detection of display: grid #541

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

Conversation

romainmenke
Copy link
Member

fixes: #540

@@ -17,6 +17,10 @@ function creator(opts) {
}

const isNotDisplayGrid = !(decl.parent.some((node) => {
if (node.type !== 'decl') {
Copy link
Member Author

Choose a reason for hiding this comment

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

When this is a rule or at-rule prop and value won't exist

Choose a reason for hiding this comment

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

With this change I'm getting a runtime error on line 32 because node.prop is undefined.

Copy link
Member Author

Choose a reason for hiding this comment

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

thank you @iain-s-h !

Copy link
Member

@Antonio-Laguna Antonio-Laguna left a comment

Choose a reason for hiding this comment

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

LGTM!

@Antonio-Laguna Antonio-Laguna merged commit ee10898 into main Jul 12, 2022
@Antonio-Laguna Antonio-Laguna deleted the postcss-gap-properties--fix-detection--witty-tibetan-mastiff-7033e2af6b branch July 12, 2022 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Postcss-gap-properties not working anymore since 2 days on Angular 13.3.8 build
3 participants