fix text positioning in Firefox
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
.umb-progress-circle {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.umb-progress-circle__view-box {
|
||||
@@ -47,6 +44,6 @@
|
||||
// the text in the center
|
||||
.umb-progress-circle__percentage {
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div class="umb-progress-circle" ng-style="{'width': size, 'height': size }">
|
||||
<div class="umb-progress-circle" ng-style="{'width': size, 'height': size, 'line-height': size + 'px' }">
|
||||
<svg class="umb-progress-circle__view-box" viewBox="0 0 100 100">
|
||||
<circle class="umb-progress-circle__bg" cx="50" cy="50" r="47" fill="none" stroke-width="6"/>
|
||||
<circle class="umb-progress-circle__highlight umb-progress-circle__highlight--{{ color }}" cx="50" cy="50" r="47" fill="none" stroke-width="6" stroke-dasharray="{{ strokeDashArray }}" stroke-dashoffset="{{ strokeDashOffset }}" />
|
||||
|
||||
Reference in New Issue
Block a user