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

fix(postcss-reduce-idents): fix line names grid templates #1491

Merged
merged 1 commit into from Apr 27, 2023

Conversation

ludofischer
Copy link
Collaborator

Handle grid and column names enclosed in square brackets. Cover both the case where the brackets contain a single grid line name and the case where the brackets contain multiple separate grid line names.

Fix #529 (again)

@@ -53,6 +55,19 @@ module.exports = function () {
}
});
}
if (child.type === 'word') {
const word = child.value;
if (word.startsWith('[') && word.endsWith(']')) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Maybe there's a better way to do it, but postcss-value-parser does not understand list of elements in brackets at all.

@codecov
Copy link

codecov bot commented Apr 22, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (eb9a9a1) 97.54% compared to head (74fc574) 97.55%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1491   +/-   ##
=======================================
  Coverage   97.54%   97.55%           
=======================================
  Files         123      123           
  Lines       10149    10189   +40     
=======================================
+ Hits         9900     9940   +40     
  Misses        249      249           
Impacted Files Coverage Δ
...ges/postcss-reduce-idents/src/lib/grid-template.js 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@ludofischer ludofischer force-pushed the update-columns branch 2 times, most recently from 0d4e72d to 4ab09f1 Compare April 23, 2023 19:39
Handle grid and column names enclosed in square brackets.
Cover both the case where the brackets contain a single grid line name
and the case where the brackets contain multiple separate grid line names.

Fix #529 (again)
@ludofischer
Copy link
Collaborator Author

@alexander-akait do you think we can merge this?

@alexander-akait
Copy link
Member

I think yes

@ludofischer ludofischer merged commit 2af6687 into master Apr 27, 2023
16 checks passed
@ludofischer ludofischer deleted the update-columns branch April 27, 2023 20:52
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.

[Bug] named grid-template-columns are not renamed while grid-area does
2 participants