File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 55
55
word-wrap : normal;
56
56
outline : none;
57
57
text-decoration : inherit;
58
+ color : inherit;
58
59
}
59
60
60
61
: host (: active ) .ui5-link-root {
61
62
color : var (--sapLink_Active_Color );
62
63
text-decoration : var (--_ui5_link_active_text_decoration );
63
64
}
64
65
65
- .ui5-link-root : visited {
66
- color : var (--sapLink_Visited_Color );
67
- }
68
-
69
66
: host .ui5-link-root {
70
67
border : var (--_ui5_link_border );
71
68
border-radius : var (--_ui5_link_focus_border-radius );
81
78
text-shadow : none;
82
79
}
83
80
84
- : host (: hover ),
85
- : host (: hover ) .ui5-link-root {
81
+ : host (: hover ) {
86
82
color : var (--sapLink_Hover_Color );
87
83
text-decoration : var (--_ui5_link_hover_text_decoration );
88
84
}
89
85
90
- : host ([focused ]: hover ),
86
+ : host ([focused ]: hover ) {
87
+ text-decoration : var (--_ui5_link_focused_hover_text_decoration );
88
+ }
89
+
91
90
: host ([focused ]: hover ) .ui5-link-root {
92
91
color : var (--_ui5_link_focused_hover_text_color );
93
- text-decoration : var (--_ui5_link_focused_hover_text_decoration );
94
92
}
Original file line number Diff line number Diff line change @@ -49,6 +49,11 @@ <h2>prevent-default</h2>
49
49
< ui5-link href ="https://www.google.com " target ="_self " id ="link-click-prevent-default "> link click default prevented</ ui5-link > < span > native span</ span >
50
50
</ section >
51
51
52
+ < section class ="group ">
53
+ < h2 > overstyle-link</ h2 >
54
+ < ui5-link href ="https://www.google.com " target ="_self " style ="color: pink "> link with different color</ ui5-link > < span > native span</ span >
55
+ </ section >
56
+
52
57
< section class ="group ">
53
58
< h2 > Disabled link</ h2 >
54
59
< ui5-link href ="https://www.google.com " target ="_blank " id ="disabled-link " disabled > Disabled link</ ui5-link >
You can’t perform that action at this time.
0 commit comments