Skip to content

Commit

Permalink
generate a class selector instead of an attribute selector
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Feb 24, 2018
1 parent 9971283 commit e6c1cdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/css/Stylesheet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit e6c1cdf

Please sign in to comment.