[libadwaita/wip/exalm/buttons-again-2: 2/5] stylesheet: Fix HC outlines for AdwViewSwitcher




commit 1ce9b4d522ca882fea9010be8e18d934690c5af8
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Mon Nov 15 02:12:31 2021 +0500

    stylesheet: Fix HC outlines for AdwViewSwitcher

 src/stylesheet/widgets/_view-switcher.scss | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/src/stylesheet/widgets/_view-switcher.scss b/src/stylesheet/widgets/_view-switcher.scss
index 614de8b1..529b88e5 100644
--- a/src/stylesheet/widgets/_view-switcher.scss
+++ b/src/stylesheet/widgets/_view-switcher.scss
@@ -11,6 +11,16 @@ viewswitcher {
     font-size: 1rem;
     font-weight: inherit;
 
+    @if $contrast == 'high' {
+      &:hover,
+      &.keyboard-activating,
+      &:active,
+      &:checked {
+        box-shadow: inset  1px 0 $border_color,
+                    inset -1px 0 $border_color;
+      }
+    }
+
     > stack > box {
       &.narrow {
         font-size: 0.75rem;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]