-
Notifications
You must be signed in to change notification settings - Fork 171
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
Hide area name in grid expression inputs #6452
Conversation
#14522 Bundle Size — 57.79MiB (~+0.01%).8854dfa(current) vs 916e8b9 master#14521(baseline) Warning Bundle contains 70 duplicate packages – View duplicate packages Bundle metrics
|
Current #14522 |
Baseline #14521 |
|
---|---|---|
Initial JS | 40.74MiB (~+0.01% ) |
40.74MiB |
Initial CSS | 0B |
0B |
Cache Invalidation | 18.03% |
18.02% |
Chunks | 23 |
23 |
Assets | 25 |
25 |
Modules | 4106 |
4106 |
Duplicate Modules | 214 |
214 |
Duplicate Code | 27.47% |
27.47% |
Packages | 475 |
475 |
Duplicate Packages | 70 |
70 |
Bundle size by type 2 changes
1 regression
1 improvement
Current #14522 |
Baseline #14521 |
|
---|---|---|
JS | 57.78MiB (~+0.01% ) |
57.78MiB |
HTML | 7.37KiB (-0.25% ) |
7.39KiB |
Bundle analysis report Branch fix/hide-area-name-grid-input Project dashboard
Generated by RelativeCI Documentation Report issue
@@ -250,7 +250,7 @@ const TemplateDimensionControl = React.memo( | |||
'always', | |||
grid.elementPath, | |||
PP.create('style', axis === 'column' ? 'gridTemplateColumns' : 'gridTemplateRows'), | |||
printArrayGridDimensions(newDimensions), | |||
printArrayGridDimensions(newDimensions, 'show-area-name'), |
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.
"show" feels very wrong here, since this function is about generating the template string which goes into the actual code update. I wonder if we should split this into two helper functions, stringifyArrayGridDimensions and something else for getting the visual printed version
**Problem:** Area names should not be shown in the string inputs used for grid template values. **Fix:** Set the flag to hide area names in `GridExpressionInput`. For the future, I also made that flag mandatory and a string union instead of a boolean flag, as `'show-area-name' | 'hide-area-name'`. Fixes #6451
Problem:
Area names should not be shown in the string inputs used for grid template values.
Fix:
Set the flag to hide area names in
GridExpressionInput
. For the future, I also made that flag mandatory and a string union instead of a boolean flag, as'show-area-name' | 'hide-area-name'
.Fixes #6451