mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
fix(anchor): inner <a> inherits text styles
This commit is contained in:
5
core/src/components/anchor/anchor.scss
Normal file
5
core/src/components/anchor/anchor.scss
Normal file
@ -0,0 +1,5 @@
|
||||
@import "../../themes/ionic.globals";
|
||||
|
||||
a {
|
||||
@include text-inherit();
|
||||
}
|
@ -6,6 +6,7 @@ import { openURL } from '../../utils/theme';
|
||||
@Component({
|
||||
tag: 'ion-anchor',
|
||||
shadow: true,
|
||||
styleUrl: 'anchor.scss'
|
||||
})
|
||||
export class Anchor {
|
||||
|
||||
|
@ -15,6 +15,17 @@
|
||||
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
|
||||
// --------------------------------------------------
|
||||
|
Reference in New Issue
Block a user