Skip to content

Commit

Permalink
fix(anchor): inner <a> inherits text styles
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Jul 12, 2018
1 parent 2798bb0 commit 9aedfc6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/src/components/anchor/anchor.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@import "../../themes/ionic.globals";

a {
@include text-inherit();
}
1 change: 1 addition & 0 deletions core/src/components/anchor/anchor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { openURL } from '../../utils/theme';
@Component({
tag: 'ion-anchor',
shadow: true,
styleUrl: 'anchor.scss'
})
export class Anchor {

Expand Down
11 changes: 11 additions & 0 deletions core/src/themes/ionic.mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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
// --------------------------------------------------
Expand Down

0 comments on commit 9aedfc6

Please sign in to comment.