generate a class selector instead of an attribute selector

pull/7738/head
Rich Harris 8 years ago
parent 3053aaeec3
commit c233e4f178

@ -69,7 +69,7 @@ class Rule {
transform(code: MagicString, id: string, keyframes: Map<string, string>, cascade: boolean) {
if (this.parent && this.parent.node.type === 'Atrule' && this.parent.node.name === 'keyframes') return true;
const attr = `[${id}]`;
const attr = `.${id}`;
if (cascade) {
this.selectors.forEach(selector => {

Loading…
Cancel
Save