Skip to content

Commit

Permalink
fix: host selector not removed when there is trailing whitespace (#780)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladitasev authored Sep 17, 2019
1 parent 0d7baa1 commit b5d8fde
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/base/src/util/CSSTransformUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const replaceSelectors = (str, selector, replacement) => {
};

const adaptLinePart = (line, tag) => {
line = line.trim();
line = replaceSelectors(line, "::slotted", ``); // first remove all ::slotted() occurrences

// Host selector - replace it
Expand Down

0 comments on commit b5d8fde

Please sign in to comment.