Skip to content

Commit e7ac745

Browse files
Update changelog and add feature flag
1 parent e30b9bc commit e7ac745

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111

12+
- _Experimental_: Add `details-content` variant ([#15319](https://github.com/tailwindlabs/tailwindcss/pull/15319))
1213
- _Experimental_: Add `inverted-colors` variant ([#11693](https://github.com/tailwindlabs/tailwindcss/pull/11693))
1314
- _Experimental_: Add `user-valid` and `user-invalid` variants ([#12370](https://github.com/tailwindlabs/tailwindcss/pull/12370))
1415
- _Experimental_: Add `wrap-anywhere`, `wrap-break-word`, and `wrap-normal` utilities ([#12128](https://github.com/tailwindlabs/tailwindcss/pull/12128))
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
export const enableDetailsContent = process.env.FEATURES_ENV !== 'stable'
12
export const enableInvertedColors = process.env.FEATURES_ENV !== 'stable'
23
export const enableUserValid = process.env.FEATURES_ENV !== 'stable'
34
export const enableWrapAnywhere = process.env.FEATURES_ENV !== 'stable'

packages/tailwindcss/src/variants.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
type StyleRule,
1313
} from './ast'
1414
import { type Variant } from './candidate'
15-
import { enableInvertedColors, enableUserValid } from './feature-flags'
15+
import { enableDetailsContent, enableInvertedColors, enableUserValid } from './feature-flags'
1616
import type { Theme } from './theme'
1717
import { compareBreakpoints } from './utils/compare-breakpoints'
1818
import { DefaultMap } from './utils/default-map'
@@ -628,7 +628,9 @@ export function createVariants(theme: Theme): Variants {
628628
staticVariant('file', ['&::file-selector-button'])
629629
staticVariant('placeholder', ['&::placeholder'])
630630
staticVariant('backdrop', ['&::backdrop'])
631-
staticVariant('details-content', ['&::details-content'])
631+
if (enableDetailsContent) {
632+
staticVariant('details-content', ['&::details-content'])
633+
}
632634

633635
{
634636
function contentProperties() {

0 commit comments

Comments
 (0)