From 50392f54eeb3d25ed6c95e2750b1ce9b1e3d6a13 Mon Sep 17 00:00:00 2001 From: crisbeto Date: Thu, 20 Feb 2020 23:14:20 +0100 Subject: [PATCH] fix(list): no disabled indication in high contrast mode Fixes not being able to distinguish disabled list items in high contrast mode. --- src/material/list/list.scss | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/material/list/list.scss b/src/material/list/list.scss index ba2fdda0dbc0..a12829c6093a 100644 --- a/src/material/list/list.scss +++ b/src/material/list/list.scss @@ -305,6 +305,12 @@ mat-action-list { .mat-list-item-disabled { pointer-events: none; + + // Since we can't use a color to indicate that the list + // item is disabled, we have to use opacity instead. + @include cdk-high-contrast { + opacity: 0.5; + } } @include cdk-high-contrast(active, off) {