]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Update pagination focus styles
authorMark Otto <markdotto@gmail.com>
Sun, 31 Dec 2017 06:50:43 +0000 (22:50 -0800)
committerMark Otto <markd.otto@gmail.com>
Wed, 3 Jan 2018 05:49:01 +0000 (21:49 -0800)
- Drops the hover-focus mixin for standard :hover
- Adds explicit :focus styles to match button, input, etc with a box-shadow
- Adjusts z-index values to ensure the layers go initial, hover, active, focus

Fixes #24838.

scss/_pagination.scss
scss/_variables.scss

index 286febc9d146eef7cc9854a522c23dfa8aa55bbd..b0193d170e3fde0f0090b55f9b6c887ad7a55a33 100644 (file)
   background-color: $pagination-bg;
   border: $pagination-border-width solid $pagination-border-color;
 
-  @include hover-focus {
+  &:hover {
     color: $pagination-hover-color;
     text-decoration: none;
     background-color: $pagination-hover-bg;
     border-color: $pagination-hover-border-color;
   }
 
+  &:focus {
+    z-index: 2;
+    outline: 0;
+    box-shadow: $pagination-focus-box-shadow;
+  }
 
   // Opinionated: add "hand" cursor to non-disabled .page-link elements
   &:not([disabled]):not(.disabled) {
index 62b4850a8e39d559d9e7897edf4f416207f23560..2438c115e73a6af27cf80625b4a939881ff52026 100644 (file)
@@ -627,6 +627,8 @@ $pagination-bg:                     $white !default;
 $pagination-border-width:           $border-width !default;
 $pagination-border-color:           $gray-300 !default;
 
+$pagination-focus-box-shadow:       $input-btn-focus-box-shadow !default;
+
 $pagination-hover-color:            $link-hover-color !default;
 $pagination-hover-bg:               $gray-200 !default;
 $pagination-hover-border-color:     $gray-300 !default;