diff --git a/web/annotation_editor_layer_builder.css b/web/annotation_editor_layer_builder.css index 29c06a403..5248aa900 100644 --- a/web/annotation_editor_layer_builder.css +++ b/web/annotation_editor_layer_builder.css @@ -35,7 +35,7 @@ } } -@media (forced-colors: active) { +@media screen and (forced-colors: active) { :root { --focus-outline: solid 3px ButtonText; --hover-outline: dashed 3px ButtonText; diff --git a/web/annotation_layer_builder.css b/web/annotation_layer_builder.css index 3a3ddf556..14bc98db3 100644 --- a/web/annotation_layer_builder.css +++ b/web/annotation_layer_builder.css @@ -22,7 +22,7 @@ --input-hover-border-color: black; } -@media (forced-colors: active) { +@media screen and (forced-colors: active) { :root { --input-focus-border-color: CanvasText; --input-unfocused-border-color: ActiveText; diff --git a/web/text_layer_builder.css b/web/text_layer_builder.css index 8e7269e2f..f3291b5ba 100644 --- a/web/text_layer_builder.css +++ b/web/text_layer_builder.css @@ -18,7 +18,7 @@ --highlight-selected-bg-color: rgba(0, 100, 0, 1); } -@media (forced-colors: active) { +@media screen and (forced-colors: active) { :root { --highlight-bg-color: Highlight; --highlight-selected-bg-color: ButtonText; diff --git a/web/xfa_layer_builder.css b/web/xfa_layer_builder.css index c650adfc1..28a26d0a1 100644 --- a/web/xfa_layer_builder.css +++ b/web/xfa_layer_builder.css @@ -18,7 +18,7 @@ --xfa-focus-outline: auto; } -@media (forced-colors: active) { +@media screen and (forced-colors: active) { :root { --xfa-focus-outline: 2px solid CanvasText; }