Skip to content

Commit 45db41d

Browse files
Forced-contrast mode adjustments for better accessibility (#12342)
Add forced contrast mode Co-authored-by: kiblik <5609770+kiblik@users.noreply.github.com> --------- Co-authored-by: kiblik <5609770+kiblik@users.noreply.github.com>
1 parent 24ac437 commit 45db41d

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

dojo/static/dojo/css/dojo.css

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1884,3 +1884,27 @@ input[type=number]::-webkit-outer-spin-button {
18841884
.table th:last-child, .table td:last-child {
18851885
border-right: none;
18861886
}
1887+
1888+
/* Keep the color of the legend in forced color mode */
1889+
.legend td {
1890+
forced-color-adjust: none;
1891+
}
1892+
1893+
.legend .legendLabel {
1894+
padding-left: 4px;
1895+
forced-color-adjust: auto;
1896+
}
1897+
1898+
.fa-caret-down,
1899+
.caret {
1900+
forced-color-adjust: none;
1901+
}
1902+
1903+
/* Keep arrows icons in forced color mode */
1904+
@media (forced-colors: active) {
1905+
.fa-caret-down,
1906+
.caret {
1907+
color: ButtonText;
1908+
}
1909+
}
1910+

0 commit comments

Comments
 (0)