2525 & :visited {
2626 color : globals .$ion-text-link-visited ;
2727 }
28- }
2928
30- // Link: Standalone
31- // -------------------------------------------------------------------------------
29+ // Link: Focus
30+ // -------------------------------------------------------------------------------
3231
33- @mixin ionic-link {
34- color : globals .$ion-text-link-default ;
32+ & :focus ,
33+ & .ion-focused {
34+ @include globals .focused-state ();
3535
36- text-decoration : none ;
36+ border-radius : globals .$ion-border-radius-100 ;
37+ }
3738
38- @include link-shared ;
39+ // Link: Active
40+ // -------------------------------------------------------------------------------
41+
42+ & :active ,
43+ & .ion-activated {
44+ color : globals .$ion-text-link-press ;
3945
40- // Link: Standalone - Hover
46+ text-decoration : underline ;
47+ }
48+
49+ // Link: Hover
4150 // -------------------------------------------------------------------------------
4251
4352 @media (any-hover : hover) {
4453 & :hover {
54+ color : globals .$ion-text-link-press ;
55+
4556 text-decoration : underline ;
4657 }
4758 }
4859
49- // Link: Standalone - Focus
50- // -------------------------------------------------------------------------------
51-
52- & :focus ,
53- & .ion-focused {
54- @include globals .focused-state (null, null, globals .$ion-text-link-default );
60+ }
5561
56- text-decoration : underline ;
57- }
62+ // Link: Standalone
63+ // -------------------------------------------------------------------------------
5864
59- // Link: Standalone - Active
60- // -------------------------------------------------------------------------------
65+ @mixin ionic-link {
66+ color : globals . $ion-text-link-default ;
6167
62- & :active ,
63- & .ion-activated {
64- color : globals .$ion-text-link-press ;
68+ text-decoration : none ;
6569
66- text-decoration : underline ;
67- }
70+ @include link-shared ;
6871}
6972
7073a .ionic-link ,
@@ -76,38 +79,21 @@ a.ionic-link,
7679// -------------------------------------------------------------------------------
7780
7881@mixin ionic-link-underline {
79- color : currentColor ;
82+ color : globals . $ion-text-default ;
8083
8184 text-decoration : underline ;
8285
8386 @include link-shared ;
8487
85- // Link: Underline - Hover
86- // -------------------------------------------------------------------------------
87-
88- @media (any-hover : hover) {
89- & :hover {
90- color : globals .$ion-text-link-press ;
91- }
92- }
93-
94- // Link: Underline - Focus
88+ // Link: Focus
9589 // -------------------------------------------------------------------------------
9690
9791 & :focus ,
9892 & .ion-focused {
99- @include globals .focused-state (null, null, globals . $ion-text-link- default ) ;
93+ color : globals .$ion-text-default ;
10094
10195 text-decoration : none ;
10296 }
103-
104- // Link: Underline - Active
105- // -------------------------------------------------------------------------------
106-
107- & :active ,
108- & .ion-activated {
109- color : globals .$ion-text-link-press ;
110- }
11197}
11298
11399a .ionic-link-underline ,
0 commit comments