Closed jantimon closed 1 month ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
next-yak-benchmark | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jul 14, 2024 9:38am |
yacijs | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jul 14, 2024 9:38am |
The changes primarily focus on renaming CSS variable and class names by adding prefixes and modifying existing ones. This includes introducing double underscores (__
) and dollar signs ($
) to improve the consistency and clarity of the naming conventions for CSS variables and classes. These updates span across test files and core functionality files related to CSS handling within the project.
Files Path(s) | Change Summary |
---|---|
.../loaders/__tests__/cssloader.test.ts |
Updated CSS variable names by adding double underscores (__ ). |
.../loaders/__tests__/getCssName.test.ts |
Prefixed expected CSS names with a dollar sign ($ ) in test cases. |
.../loaders/__tests__/tsloader.test.ts |
Renamed CSS class names and variables by adding/modifying prefixes like $ , __ , and __$ . |
.../loaders/babel-yak-plugin.ts |
Modified cssVarName construction by replacing hyphens with double underscores (__ ). |
.../loaders/lib/getCssName.ts |
Removed replacement of $ with an empty string in the getCssName function. |
In the land of CSS, with names that gleam,
A tweak here and there, like a dream.
Double underscores and dollar signs bright,
Make the styles pure and right.
Code flows with elegance, clean and fair,
A rabbit's touch, with utmost care.
✨🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Comparing feature/css-variable-naming
(02637ad) with main
(329c21c)
✅ 2
untouched benchmarks
use
__
as separator for css variables:old:
color: var(--headline-color_18fi82j);
new: `color: var(--headline__color_18fi82j);don't remove the
$
from the variable:old:
.Button__primary {
new:.Button__$primary {
Summary by CodeRabbit
Bug Fixes
Refactor
$
and__
to improve readability and maintainability.