File tree 7 files changed +45
-0
lines changed
error-other-than-class-attribute
error-other-than-equal- in-class-attribute
7 files changed +45
-0
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,16 @@ const plugin = (options = {}) => {
134
134
) ,
135
135
} ) ;
136
136
}
137
+ case "attribute" : {
138
+ if ( node . attribute === "class" && node . operator === "=" ) {
139
+ return selectorParser . attribute ( {
140
+ attribute : node . attribute ,
141
+ operator : node . operator ,
142
+ quoteMark : "'" ,
143
+ value : exportScopedName ( node . value ) ,
144
+ } ) ;
145
+ }
146
+ }
137
147
}
138
148
139
149
throw new Error (
Original file line number Diff line number Diff line change
1
+ attribute \("\[target\="_blank"]\"\) is not allowed in a :local block
Original file line number Diff line number Diff line change
1
+ : local (.exportName1 [target = "_blank" ]) {
2
+ color : blue;
3
+ }
Original file line number Diff line number Diff line change
1
+ attribute \("\[class\*\="exportName2\"]\"\) is not allowed in a :local block
Original file line number Diff line number Diff line change
1
+ : local (.exportName1 [class *= "exportName2" ]) {
2
+ color : blue;
3
+ }
Original file line number Diff line number Diff line change
1
+ ._input__exportName1 {
2
+ color : red;
3
+ }
4
+
5
+ ._input__exportName2 {
6
+ color : green;
7
+ }
8
+
9
+ ._input__exportName2 [class = _input__exportName1 ] {
10
+ color : blue;
11
+ }
12
+
13
+ : export {
14
+ exportName1 : _input__exportName1;
15
+ exportName2 : _input__exportName2;
16
+ }
Original file line number Diff line number Diff line change
1
+ : local (.exportName1 ) {
2
+ color : red;
3
+ }
4
+
5
+ : local (.exportName2 ) {
6
+ color : green;
7
+ }
8
+
9
+ : local (.exportName2 [class = "exportName1" ]) {
10
+ color : blue;
11
+ }
You can’t perform that action at this time.
0 commit comments