Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

fix(a11y): various issues with contrast ratios #635

Merged
merged 1 commit into from
Sep 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

&.docs-component-viewer-sidenav-item-selected,
&:hover {
color: mat-color($primary);
color: mat-color($primary, if($is-dark-theme, 200, default));
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/app/pages/guide-list/_guide-list-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
$warn: map-get($theme, warn);
$background: map-get($theme, background);
$foreground: map-get($theme, foreground);
$is-dark-theme: map-get($theme, is-dark);

.docs-guide-list .docs-guide-item {
color: mat-color($primary);
color: mat-color($primary, if($is-dark-theme, 200, default));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
$warn: map-get($theme, warn);
$background: map-get($theme, background);
$foreground: map-get($theme, foreground);
$is-dark-theme: map-get($theme, is-dark);

.docs-toc-container {
border-left: solid 4px mat-color($primary);
Expand All @@ -14,7 +15,7 @@

&:hover,
&.docs-active {
color: mat-color($primary);
color: mat-color($primary, if($is-dark-theme, 200, default));
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/highlightjs/material-dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Orginal Style from https://github.com/Kelbster/highlightjs-material-dark-theme
}

.hljs-comment {
color: #656565;
color: #9E9E9E;
font-style: italic;
}

Expand Down
2 changes: 1 addition & 1 deletion src/highlightjs/material-light.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}

.hljs-comment {
color: #B0BEC5;
color: #616161;
font-style: italic;
}

Expand Down
21 changes: 18 additions & 3 deletions src/styles/_api-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,24 @@
$foreground: map-get($theme, foreground);
$is-dark-theme: map-get($theme, is-dark);

.docs-api-method-returns-type,
.docs-api-method-parameter-type {
color: mat-color($primary, darker);
@if $is-dark-theme {
.docs-api-method-name-cell {
color: mat-color($primary, 200);
}

.docs-api-method-returns-type,
.docs-api-method-parameter-type {
color: mat-color($primary, 200);
}
} @else {
.docs-api-method-name-cell {
color: mat-color($primary, 800);
}

.docs-api-method-returns-type,
.docs-api-method-parameter-type {
color: mat-color($primary, darker);
}
}

// Force the top-level API docs header to be hidden, since this is already
Expand Down
2 changes: 1 addition & 1 deletion src/styles/_markdown-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

.docs-markdown {
a {
color: mat-color($primary);
color: mat-color($primary, if($is-dark-theme, 200, default));
}

pre {
Expand Down