From 9aedfc60aa6ae64dda0e706ae440b9ce95c59b91 Mon Sep 17 00:00:00 2001 From: "Manu Mtz.-Almeida" Date: Thu, 12 Jul 2018 11:56:32 +0200 Subject: [PATCH] fix(anchor): inner inherits text styles --- core/src/components/anchor/anchor.scss | 5 +++++ core/src/components/anchor/anchor.tsx | 1 + core/src/themes/ionic.mixins.scss | 11 +++++++++++ 3 files changed, 17 insertions(+) create mode 100644 core/src/components/anchor/anchor.scss diff --git a/core/src/components/anchor/anchor.scss b/core/src/components/anchor/anchor.scss new file mode 100644 index 0000000000..69dce57dac --- /dev/null +++ b/core/src/components/anchor/anchor.scss @@ -0,0 +1,5 @@ +@import "../../themes/ionic.globals"; + +a { + @include text-inherit(); +} \ No newline at end of file diff --git a/core/src/components/anchor/anchor.tsx b/core/src/components/anchor/anchor.tsx index 66fa907053..ed776ef99f 100644 --- a/core/src/components/anchor/anchor.tsx +++ b/core/src/components/anchor/anchor.tsx @@ -6,6 +6,7 @@ import { openURL } from '../../utils/theme'; @Component({ tag: 'ion-anchor', shadow: true, + styleUrl: 'anchor.scss' }) export class Anchor { diff --git a/core/src/themes/ionic.mixins.scss b/core/src/themes/ionic.mixins.scss index 317a1de9ef..dd843d2b8f 100644 --- a/core/src/themes/ionic.mixins.scss +++ b/core/src/themes/ionic.mixins.scss @@ -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 // --------------------------------------------------