forked from prettier/prettier
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: don't lowercase variable in css modules (prettier#4152)
- Loading branch information
1 parent
e237320
commit 5537140
Showing
4 changed files
with
131 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,98 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`modules.css 1`] = ` | ||
@value colors: './colors.css'; | ||
@value first, second, third from colors; | ||
.title { | ||
@nest :global(h1)& { | ||
background: red; | ||
} | ||
} | ||
.className { | ||
color: green; | ||
background: red; | ||
} | ||
.otherClassName { | ||
composes: className; | ||
color: yellow; | ||
} | ||
.otherClassName { | ||
composes: className from "./style.css"; | ||
} | ||
.otherClassName { | ||
composes: globalClassName from global; | ||
} | ||
:global { | ||
.global-class-name { | ||
color: green; | ||
} | ||
} | ||
.root :global .text { | ||
color: brown; | ||
font-size: 24px; | ||
font-family: helvetica, arial, sans-serif; | ||
font-weight: 600; | ||
} | ||
:import("path/to/dep.css") { | ||
localAlias: keyFromDep; | ||
} | ||
:export { | ||
exportedKey: exportedValue; | ||
} | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
@value colors: './colors.css'; | ||
@value first, second, third from colors; | ||
.title { | ||
@nest :global(h1)& { | ||
background: red; | ||
} | ||
} | ||
.className { | ||
color: green; | ||
background: red; | ||
} | ||
.otherClassName { | ||
composes: className; | ||
color: yellow; | ||
} | ||
.otherClassName { | ||
composes: className from "./style.css"; | ||
} | ||
.otherClassName { | ||
composes: globalClassName from global; | ||
} | ||
:global { | ||
.global-class-name { | ||
color: green; | ||
} | ||
} | ||
.root :global .text { | ||
color: brown; | ||
font-size: 24px; | ||
font-family: helvetica, arial, sans-serif; | ||
font-weight: 600; | ||
} | ||
:import("path/to/dep.css") { | ||
localAlias: keyFromDep; | ||
} | ||
:export { | ||
exportedKey: exportedValue; | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,46 @@ | ||
@value colors: './colors.css'; | ||
@value first, second, third from colors; | ||
|
||
.title { | ||
@nest :global(h1)& { | ||
background: red; | ||
} | ||
} | ||
|
||
.className { | ||
color: green; | ||
background: red; | ||
} | ||
|
||
.otherClassName { | ||
composes: className; | ||
color: yellow; | ||
} | ||
|
||
.otherClassName { | ||
composes: className from "./style.css"; | ||
} | ||
|
||
.otherClassName { | ||
composes: globalClassName from global; | ||
} | ||
|
||
:global { | ||
.global-class-name { | ||
color: green; | ||
} | ||
} | ||
|
||
.root :global .text { | ||
color: brown; | ||
font-size: 24px; | ||
font-family: helvetica, arial, sans-serif; | ||
font-weight: 600; | ||
} | ||
|
||
:import("path/to/dep.css") { | ||
localAlias: keyFromDep; | ||
} | ||
:export { | ||
exportedKey: exportedValue; | ||
} |