]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix combo box and date field small & large styles box-shadow on focus (Valo)
authorJouni Koivuviita <jouni@vaadin.com>
Thu, 7 Aug 2014 10:48:24 +0000 (13:48 +0300)
committerArtur Signell <artur@vaadin.com>
Mon, 11 Aug 2014 18:32:08 +0000 (18:32 +0000)
Don’t override any other state than the “normal” for large & small
styles (box-shadow in particular)

Change-Id: I295b5e2300a4b2137171fb0aa55d5bbf3feb8cf6

WebContent/VAADIN/themes/valo/components/_combobox.scss
WebContent/VAADIN/themes/valo/components/_datefield.scss

index e514dc8e201ec30ff5643a812f1529f3fed20d3d..4e5cd5bbacbf2bb30a88a06c7edc2d29c2834c75 100644 (file)
     }
 
     .#{$primary-stylename}-small {
-      @include valo-combobox-style($unit-size: $v-unit-size--small, $bevel: null, $shadow: null, $gradient: null, $border: null, $border-radius: null, $background-color: null);
+      @include valo-combobox-style($unit-size: $v-unit-size--small, $bevel: null, $shadow: null, $gradient: null, $border: null, $border-radius: null, $background-color: null, $states: normal);
       font-size: $v-font-size--small;
     }
 
     .#{$primary-stylename}-large {
-      @include valo-combobox-style($unit-size: $v-unit-size--large, $bevel: null, $shadow: null, $gradient: null, $border: null, $border-radius: null, $background-color: null);
+      @include valo-combobox-style($unit-size: $v-unit-size--large, $bevel: null, $shadow: null, $gradient: null, $border: null, $border-radius: null, $background-color: null, $states: normal);
       font-size: $v-font-size--large;
     }
   }
     $bevel: $v-textfield-bevel,
     $shadow: $v-textfield-shadow,
 
-    $primary-stylename: v-filterselect
+    $primary-stylename: v-filterselect,
+    $states: normal focus disabled
   ) {
 
     height: $unit-size;
           $background-color: $background-color,
           $font-color: $font-color,
           $font-size: $font-size,
-          $font-weight: $font-weight);
+          $font-weight: $font-weight,
+          $states: $states);
   }
 
   .v-icon + .#{$primary-stylename}-input {
 
     $gradient: none,
     $bevel: $v-bevel,
-    $shadow: $v-shadow
+    $shadow: $v-shadow,
+
+    $states: normal focus disabled
 ) {
   @include box-sizing(border-box);
   @include valo-textfield-style($unit-size: $unit-size,
                                 $border-radius: $border-radius,
                                 $gradient: $gradient,
                                 $bevel: $bevel,
-                                $shadow: $shadow);
+                                $shadow: $shadow,
+                                $states: $states);
   width: 100% !important; // Need to override calculated inline style which is sometimes added
   height: 100%;
   padding-right: round($unit-size * 1.2);
index a2b67b3f8c2d9d862fafe0849e308fb6f104b286..153868174089188892d043c0aaa02a2f322505e5 100644 (file)
     }
 
     .#{$primary-stylename}-small {
-      @include valo-datefield-style($unit-size: $v-unit-size--small, $bevel: null, $shadow: null, $border: null, $background-color: null);
+      @include valo-datefield-style($unit-size: $v-unit-size--small, $bevel: null, $shadow: null, $border: null, $background-color: null, $states: normal);
       font-size: $v-font-size--small;
     }
 
     .#{$primary-stylename}-large {
-      @include valo-datefield-style($unit-size: $v-unit-size--large, $bevel: null, $shadow: null, $border: null, $background-color: null);
+      @include valo-datefield-style($unit-size: $v-unit-size--large, $bevel: null, $shadow: null, $border: null, $background-color: null, $states: normal);
       font-size: $v-font-size--large;
     }
   }
@@ -94,7 +94,8 @@
     $border            : $v-textfield-border,
     $border-radius     : $v-textfield-border-radius,
     $background-color  : $v-textfield-background-color,
-    $primary-stylename : v-datefield
+    $primary-stylename : v-datefield,
+    $states            : normal focus disabled
   ) {
 
   height: $unit-size;
 
   .#{$primary-stylename}-textfield {
     @include box-sizing(border-box);
-    @include valo-textfield-style($bevel: $bevel, $shadow: $shadow, $unit-size: $unit-size, $border: $border, $border-radius: $border-radius, $background-color: $background-color) ;
+    @include valo-textfield-style($bevel: $bevel, $shadow: $shadow, $unit-size: $unit-size, $border: $border, $border-radius: $border-radius, $background-color: $background-color, $states: $states) ;
     padding-left: $unit-size * 1.2;
     width: 100%;
     height: 100%;