fix(anchor): inner <a> inherits text styles

This commit is contained in:
Manu Mtz.-Almeida
2018-07-12 11:56:32 +02:00
parent 2798bb083f
commit 9aedfc60aa
3 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,5 @@
@import "../../themes/ionic.globals";
a {
@include text-inherit();
}

View File

@ -6,6 +6,7 @@ import { openURL } from '../../utils/theme';
@Component({ @Component({
tag: 'ion-anchor', tag: 'ion-anchor',
shadow: true, shadow: true,
styleUrl: 'anchor.scss'
}) })
export class Anchor { export class Anchor {

View File

@ -15,6 +15,17 @@
outline: none; outline: none;
} }
@mixin text-inherit() {
font-family: inherit;
font-size: inherit;
font-weight: inherit;
letter-spacing: inherit;
text-decoration: inherit;
text-overflow: inherit;
text-transform: inherit;
white-space: inherit;
color: inherit;
}
// Font smoothing // Font smoothing
// -------------------------------------------------- // --------------------------------------------------