Skip to content

Commit 7d090a6

Browse files
authoredMay 25, 2021
fix: use theme color for link inside the API reference (#990)
1 parent 772bf9d commit 7d090a6

File tree

1 file changed

+11
-18
lines changed

1 file changed

+11
-18
lines changed
 

‎material.angular.io/src/styles/_api-theme.scss

+11-18
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,13 @@
1010
$foreground: map.get($theme, foreground);
1111
$is-dark-theme: map.get($theme, is-dark);
1212

13-
@if $is-dark-theme {
14-
.docs-api-method-name-cell {
15-
color: mat.get-color-from-palette($primary, 200);
16-
}
17-
18-
.docs-api-method-returns-type,
19-
.docs-api-method-parameter-type {
20-
color: mat.get-color-from-palette($primary, 200);
21-
}
22-
} @else {
23-
.docs-api-method-name-cell {
24-
color: mat.get-color-from-palette($primary, 800);
25-
}
26-
27-
.docs-api-method-returns-type,
28-
.docs-api-method-parameter-type {
29-
color: mat.get-color-from-palette($primary, darker);
30-
}
13+
.docs-api-method-name-cell {
14+
color: mat.get-color-from-palette($primary, if($is-dark-theme, 200, 800));
15+
}
16+
17+
.docs-api-method-returns-type,
18+
.docs-api-method-parameter-type {
19+
color: mat.get-color-from-palette($primary, if($is-dark-theme, 200, darker));
3120
}
3221

3322
.docs-api-modifier-method-marker {
@@ -47,6 +36,10 @@
4736
word-break: break-word;
4837
}
4938

39+
.docs-api a {
40+
color: mat.get-color-from-palette($primary, if($is-dark-theme, 200, default));
41+
}
42+
5043
.docs-api-class-name,
5144
.docs-api-module-import,
5245
.docs-api-class-selector-name,

0 commit comments

Comments
 (0)
Please sign in to comment.