Skip to content

refactor(spacing): generate spacing atomic classes programatically#1654

Merged
dancormier merged 10 commits intodevelopfrom
dcormier/spacing-refactor
Mar 1, 2024
Merged

refactor(spacing): generate spacing atomic classes programatically#1654
dancormier merged 10 commits intodevelopfrom
dcormier/spacing-refactor

Conversation

@dancormier
Copy link
Copy Markdown
Contributor

@dancormier dancormier commented Feb 20, 2024

This PR expands on #1652 and closes #1653


Spacing class generation is prone to bugs and accidental omissions. This PR make generation of spacing (and incidentally, positioning) atomic classes and documentation more programmatic.

@netlify
Copy link
Copy Markdown

netlify Bot commented Feb 20, 2024

Deploy Preview for stacks ready!

Name Link
🔨 Latest commit 1cea779
🔍 Latest deploy log https://app.netlify.com/sites/stacks/deploys/65d538768f70720008132852
😎 Deploy Preview https://deploy-preview-1654--stacks.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify
Copy link
Copy Markdown

netlify Bot commented Feb 20, 2024

Deploy Preview for stacks ready!

Name Link
🔨 Latest commit 5e1bfb0
🔍 Latest deploy log https://app.netlify.com/sites/stacks/deploys/65e1fcc6eddc020008e1a524
😎 Deploy Preview https://deploy-preview-1654--stacks.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Comment thread lib/atomic/__snapshots__/spacing.less.test.ts.snap
@giamir
Copy link
Copy Markdown
Contributor

giamir commented Feb 21, 2024

This refactor makes a lot of sense to me. I just glanced at the PR and left a comment. I will do a full review once you mark the PR as ready for review. Thanks @dancormier

@dancormier dancormier marked this pull request as ready for review February 23, 2024 21:07
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@dancormier Not perfect but at least we have a diff of what changed now. Let me know when this PR is ready for a final review.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It's ready for your review now but no rush on this one

@dancormier dancormier requested a review from giamir February 27, 2024 22:54
Copy link
Copy Markdown
Contributor

@giamir giamir left a comment

Choose a reason for hiding this comment

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

I took the liberty to push this commit and made a small observation about the docs missing myn.

Thanks for doing this refactor. I am good to merge when you are. 🙏

Comment thread docs/_data/spacing.json
@dancormier dancormier merged commit c1ebe3f into develop Mar 1, 2024
@dancormier dancormier deleted the dcormier/spacing-refactor branch March 1, 2024 17:30
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.

Responsive class .pb0 does not work

2 participants