Skip to content

Commit 37300d3

Browse files
committed
fix: make custom selectors work again
1 parent 38e0428 commit 37300d3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lib/clark-plugin.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ module.exports = class ClarkPlugin extends Plugin {
2424
// Use :enter, which is equal to :hover and :focus combined
2525
require('postcss-pseudo-class-enter'),
2626

27+
// https://github.com/postcss/postcss-custom-selectorsx
28+
// @custom-selector :--heading h1, h2, h3;
29+
require('postcss-custom-selectors'),
30+
2731
// https://github.com/jedmao/postcss-nested-props
2832
// Nest properties like `font: { size: 10px; family: Helvetica; }`
2933
// @TODO: https://github.com/jedmao/postcss-nested-props/issues/9
@@ -91,7 +95,6 @@ module.exports = class ClarkPlugin extends Plugin {
9195

9296
// Explicitly enable features that we want, despite being proposals yet.
9397
features: {
94-
'custom-selectors': true,
9598
'custom-properties': true,
9699
'custom-media-queries': true,
97100
'nesting-rules': true,

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"postcss-calc": "^7.0.1",
2323
"postcss-color-function": "^4.1.0",
2424
"postcss-conditionals": "^2.1.0",
25+
"postcss-custom-selectors": "^5.1.2",
2526
"postcss-each": "^0.10.0",
2627
"postcss-easing-gradients": "^3.0.1",
2728
"postcss-for": "^2.1.1",

0 commit comments

Comments
 (0)