Fix Firefox positioning of chart resource label (#9209)

alignment-baseline appears to be ignored in Firefox, but dominant-baseline
works. This also moves the anchor into CSS.
This commit is contained in:
Buck Doyle
2020-10-29 08:13:41 -05:00
committed by GitHub
parent 828487352b
commit 2dc95a10ab
2 changed files with 2 additions and 2 deletions

View File

@@ -24,8 +24,6 @@
<text
class="resource"
alignment-baseline="central"
text-anchor="end"
x={{this.resourceLabel.x}}
y={{this.resourceLabel.y}}
>

View File

@@ -9,6 +9,8 @@
.resource {
font-weight: $weight-semibold;
dominant-baseline: central;
text-anchor: end;
}
.icon.delta g {