Skip to content

Commit

Permalink
Fix: Firefox requires class to apply scoping to shadow root
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenhutchings committed Mar 16, 2023
1 parent 7512851 commit 2cf5e92
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/css/shown.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.shown svg,
.shown .symbol {
.shown .symbol,
.shown.symbol {
overflow: visible;
}

Expand Down Expand Up @@ -134,7 +135,7 @@
font-size: 10px;
}

.shown .symbol .touch {
.shown .touch {
fill: transparent !important;
stroke: none !important;
}
Expand Down
2 changes: 1 addition & 1 deletion src/templates/symbol.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const symbol = (type) => {
}

return $.symbol({
class: "symbol",
class: "symbol shown",
id: `symbol-${type}`,
viewBox: "0 0 100 100",
})([
Expand Down

0 comments on commit 2cf5e92

Please sign in to comment.