Releases: atlassian-labs/compiled
@compiled/[email protected]
Patch Changes
- 4f5865a: Fixes the parsing of custom properties (CSS variables) names in object syntax. The casing is now preserved instead of being converted to kebab-case.
- Updated dependencies [4f5865a]
- Updated dependencies [83c47f8]
- @compiled/[email protected]
- @compiled/[email protected]
@compiled/[email protected]
Minor Changes
-
83c47f8: [BREAKING] Add a deterministic sorting to media queries and other at-rules in Compiled. We use a simplified version of what the
sort-css-media-queries
package does - sortingmin-width
andmin-height
from smallest to largest, thenmax-width
andmax-height
from largest to smallest. If ranges or features involvingheight
andwidth
are not present in the at-rule, the at-rule will be sorted lexicographically / alphabetically.Situations you may need to be careful of:
- In situations where two at-rules with the same property apply at the same time, this may break your styles, as the order in which the styles are applied will change. (For example, overlapping
@media
queries) - Because all at-rules will now be sorted lexicographically / alphabetically,
@layer
blocks you pass to Compiled APIs may not be outputted in the same order, causing different CSS than expected.
This is turned on by default. If you do not want your at-rules to be sorted, set
sortAtRules
tofalse
in your configuration:- Webpack users: the
@compiled/webpack-loader
options in your Webpack configuration - Parcel users: your Compiled configuration, e.g.
.compiledcssrc
or similar - Babel users: the
@compiled/babel-plugin-strip-runtime
options in your.babelrc.json
or similar, if you have the@compiled/babel-plugin-strip-runtime
plugin enabled.
- In situations where two at-rules with the same property apply at the same time, this may break your styles, as the order in which the styles are applied will change. (For example, overlapping
Patch Changes
- Updated dependencies [4f5865a]
- @compiled/[email protected]
- @compiled/[email protected]
@compiled/[email protected]
Patch Changes
- 4f5865a: Fixes the parsing of custom properties (CSS variables) names in object syntax. The casing is now preserved instead of being converted to kebab-case.
@compiled/[email protected]
Patch Changes
- 4f5865a: Fixes the parsing of custom properties (CSS variables) names in object syntax. The casing is now preserved instead of being converted to kebab-case.
- Updated dependencies [4f5865a]
- @compiled/[email protected]
@compiled/[email protected]
Minor Changes
-
83c47f8: [BREAKING] Add a deterministic sorting to media queries and other at-rules in Compiled. We use a simplified version of what the
sort-css-media-queries
package does - sortingmin-width
andmin-height
from smallest to largest, thenmax-width
andmax-height
from largest to smallest. If ranges or features involvingheight
andwidth
are not present in the at-rule, the at-rule will be sorted lexicographically / alphabetically.Situations you may need to be careful of:
- In situations where two at-rules with the same property apply at the same time, this may break your styles, as the order in which the styles are applied will change. (For example, overlapping
@media
queries) - Because all at-rules will now be sorted lexicographically / alphabetically,
@layer
blocks you pass to Compiled APIs may not be outputted in the same order, causing different CSS than expected.
This is turned on by default. If you do not want your at-rules to be sorted, set
sortAtRules
tofalse
in your configuration:- Webpack users: the
@compiled/webpack-loader
options in your Webpack configuration - Parcel users: your Compiled configuration, e.g.
.compiledcssrc
or similar - Babel users: the
@compiled/babel-plugin-strip-runtime
options in your.babelrc.json
or similar, if you have the@compiled/babel-plugin-strip-runtime
plugin enabled.
- In situations where two at-rules with the same property apply at the same time, this may break your styles, as the order in which the styles are applied will change. (For example, overlapping
Patch Changes
- 4f5865a: Fixes the parsing of custom properties (CSS variables) names in object syntax. The casing is now preserved instead of being converted to kebab-case.
- Updated dependencies [4f5865a]
- @compiled/[email protected]
@compiled/[email protected]
Patch Changes
- 4f5865a: Fixes the parsing of custom properties (CSS variables) names in object syntax. The casing is now preserved instead of being converted to kebab-case.
- Updated dependencies [4f5865a]
- @compiled/[email protected]
@compiled/[email protected]
Minor Changes
-
83c47f8: [BREAKING] Add a deterministic sorting to media queries and other at-rules in Compiled. We use a simplified version of what the
sort-css-media-queries
package does - sortingmin-width
andmin-height
from smallest to largest, thenmax-width
andmax-height
from largest to smallest. If ranges or features involvingheight
andwidth
are not present in the at-rule, the at-rule will be sorted lexicographically / alphabetically.Situations you may need to be careful of:
- In situations where two at-rules with the same property apply at the same time, this may break your styles, as the order in which the styles are applied will change. (For example, overlapping
@media
queries) - Because all at-rules will now be sorted lexicographically / alphabetically,
@layer
blocks you pass to Compiled APIs may not be outputted in the same order, causing different CSS than expected.
This is turned on by default. If you do not want your at-rules to be sorted, set
sortAtRules
tofalse
in your configuration:- Webpack users: the
@compiled/webpack-loader
options in your Webpack configuration - Parcel users: your Compiled configuration, e.g.
.compiledcssrc
or similar - Babel users: the
@compiled/babel-plugin-strip-runtime
options in your.babelrc.json
or similar, if you have the@compiled/babel-plugin-strip-runtime
plugin enabled.
- In situations where two at-rules with the same property apply at the same time, this may break your styles, as the order in which the styles are applied will change. (For example, overlapping
Patch Changes
- 4f5865a: Fixes the parsing of custom properties (CSS variables) names in object syntax. The casing is now preserved instead of being converted to kebab-case.
- 4f5865a: Fixes the parsing of custom properties (CSS variables) names in object syntax. The casing is now preserved instead of being converted to kebab-case.
- Updated dependencies [4f5865a]
- Updated dependencies [83c47f8]
- @compiled/[email protected]
- @compiled/[email protected]
@compiled/[email protected]
Patch Changes
- 4f5865a: Fixes the parsing of custom properties (CSS variables) names in object syntax. The casing is now preserved instead of being converted to kebab-case.
- Updated dependencies [4f5865a]
- Updated dependencies [83c47f8]
- @compiled/[email protected]
- @compiled/[email protected]
@compiled/[email protected]
Patch Changes
- Updated dependencies [04cb7ae]
- @compiled/[email protected]
- @compiled/[email protected]
- @compiled/[email protected]
- @compiled/[email protected]
@compiled/[email protected]
Minor Changes
- 04cb7ae: Update the increaseSpecificity selector to play nicely with jsdom.