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

Support area names in grid templates #6080

Merged
merged 5 commits into from
Jul 15, 2024
Merged

Conversation

ruggi
Copy link
Contributor

@ruggi ruggi commented Jul 15, 2024

Problem:

Parsed CSS grid templates should support area names.

Fix:

Parse area names along with the CSS number for grid templates. The label is stored in the number itself, so we can reuse it later (e.g. for targeting via other style props).

To make it more apparent, I added the area name under the resize handles, but it's definitely not a requirement (although I think it could/should be shown somewhere!).

Screen.Recording.2024-07-15.at.15.08.01.mov

Fixes #6079

@ruggi ruggi marked this pull request as ready for review July 15, 2024 13:17
Copy link
Contributor

github-actions bot commented Jul 15, 2024

Try me

Copy link

relativeci bot commented Jul 15, 2024

#13377 Bundle Size — 62.65MiB (~+0.01%).

f557386(current) vs 6339ece master#13369(baseline)

Warning

Bundle contains 70 duplicate packages – View duplicate packages

Bundle metrics  Change 2 changes Regression 1 regression
                 Current
#13377
     Baseline
#13369
Regression  Initial JS 45.72MiB(~+0.01%) 45.72MiB
No change  Initial CSS 0B 0B
Change  Cache Invalidation 22.22% 21.55%
No change  Chunks 31 31
No change  Assets 34 34
No change  Modules 4371 4371
No change  Duplicate Modules 521 521
No change  Duplicate Code 31.68% 31.68%
No change  Packages 469 469
No change  Duplicate Packages 70 70
Bundle size by type  Change 2 changes Regression 1 regression Improvement 1 improvement
                 Current
#13377
     Baseline
#13369
Regression  JS 62.64MiB (~+0.01%) 62.63MiB
Improvement  HTML 11.16KiB (-0.33%) 11.2KiB

Bundle analysis reportBranch feat/grid-template-labelsProject dashboard

@ruggi ruggi merged commit bc45f62 into master Jul 15, 2024
15 checks passed
@ruggi ruggi deleted the feat/grid-template-labels branch July 15, 2024 14:52
liady pushed a commit that referenced this pull request Dec 13, 2024
**Problem:**

Parsed CSS grid templates should support area names.

**Fix:**

Parse area names along with the CSS number for grid templates. The label
is stored in the number itself, so we can reuse it later (e.g. for
targeting via other style props).

To make it more apparent, I added the area name under the resize
handles, but it's definitely not a requirement (although I think it
could/should be shown somewhere!).


https://github.com/user-attachments/assets/5aba975d-3b24-48be-8d69-c19f774bb351


Fixes #6079
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.

Grid template parsing should support labels
3 participants