[libadwaita/wip/exalm/stylesheet-cleanups: 8/13] stylesheet: Use the focus-ring() mixin for labels




commit 07dec0773ba6d52fec5197ff618682668277b35c
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Thu May 20 22:58:19 2021 +0500

    stylesheet: Use the focus-ring() mixin for labels
    
    Don't invent custom focus.

 src/stylesheet/widgets/_calendar.scss | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/stylesheet/widgets/_calendar.scss b/src/stylesheet/widgets/_calendar.scss
index 5ca4eefc..9a26318d 100644
--- a/src/stylesheet/widgets/_calendar.scss
+++ b/src/stylesheet/widgets/_calendar.scss
@@ -22,11 +22,8 @@ calendar {
       }
     }
 
-    > label:focus {
-      outline-color: $focus_border_color;
-      outline-offset: -2px;
-      outline-width: 2px;
-      outline-style: solid;
+    > label {
+      @include focus-ring($focus-state: 'focus');
     }
 
     > label.day-number {


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