Update button focus and hover state according to spec
authorPrateek Saxena <prtksxna@gmail.com>
Tue, 21 Jul 2015 11:07:53 +0000 (16:37 +0530)
committerPrateek Saxena <prtksxna@gmail.com>
Tue, 21 Jul 2015 11:12:55 +0000 (16:42 +0530)
Design spec at https://phabricator.wikimedia.org/M31

Change-Id: I270e2fcf863265a51ed62f790dff1ee9cf31a8b6

resources/src/mediawiki.less/mediawiki.ui/mixins.less

index 56b6811..16fd7ec 100644 (file)
 
        &:hover {
                // The inner bottom bevel should match the active background color.
-               box-shadow: 0 1px rgba(0, 0, 0, 10%), inset 0 -3px rgba(0, 0, 0, 20%);
-               border-bottom-color: @highlightColor;
+               background-color: @highlightColor;
        }
 
        &:focus {
-               border-color: rgba(0,0,0,0.2);
-               box-shadow: inset 0 0 0 1px rgba(0,0,0,0.2);
+               border-color: @colorWhite;
+               box-shadow: 0 0 0 1px @highlightColor;
 
                outline: none;
                // remove outline in Firefox
                color: @colorButtonText;
        }
 
+       &:focus {
+               background-color: @highlightColor;
+       }
+
        &:disabled {
                color: @colorDisabledText;