Fix Key label positioning bug on Firefox

Closes #90
This commit is contained in:
Farkas József
2016-09-16 22:21:36 +02:00
parent ebade0097a
commit de838ed545
3 changed files with 6 additions and 3 deletions

View File

@@ -5,8 +5,7 @@
<svg:g [ngSwitch]="labelType"
[attr.font-size]="19"
[attr.font-family]="'Helvetica'"
[attr.fill]="'white'"
style="dominant-baseline: central">
[attr.fill]="'white'">
<svg:g svg-keystroke-key *ngSwitchCase="enumLabelTypes.KeystrokeKey"
[height]="height"
[width]="width"

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@@ -0,0 +1,3 @@
:host /deep/ text {
dominant-baseline: central;
}

View File

@@ -26,7 +26,8 @@ enum LabelTypes {
@Component({
selector: 'g[svg-keyboard-key]',
template: require('./svg-keyboard-key.component.html')
template: require('./svg-keyboard-key.component.html'),
styles: [require('./svg-keyboard-key.component.scss')]
})
export class SvgKeyboardKeyComponent implements OnInit, OnChanges {
@Input() id: string;