diff --git a/docs/product/components/pagination.html b/docs/product/components/pagination.html index b5b30a47aa..26f8f343eb 100644 --- a/docs/product/components/pagination.html +++ b/docs/product/components/pagination.html @@ -32,26 +32,68 @@
{% highlight html %}
- 1 - 2 - 3 - 4 - 5 + + page + 1 + + + page + 2 + + + page + 3 + + + page + 4 + + + page + 5 + - 1096917 - Next + + page + 122386 + + + Next + page +
{% endhighlight %}
diff --git a/lib/components/pagination/pagination.less b/lib/components/pagination/pagination.less index c71240ef8b..5261e3d98f 100644 --- a/lib/components/pagination/pagination.less +++ b/lib/components/pagination/pagination.less @@ -3,6 +3,8 @@ --_pa-item-bg: transparent; --_pa-item-bc: var(--bc-darker); --_pa-item-fc: var(--fc-medium); + --_pa-item-bg-focus: var(--black-400); + --_pa-item-fc-focus: var(--white); --_pa-item-bg-hover: var(--black-225); --_pa-item-bc-hover: var(--bc-darker); --_pa-item-fc-hover: var(--fc-dark); @@ -15,6 +17,7 @@ --_pa-item-bg: var(--theme-primary); --_pa-item-bc: transparent; --_pa-item-fc: var(--white); + --_pa-item-bg-focus: var(--theme-primary-400); } &.s-pagination--item__clear { --_pa-item-bg: transparent; @@ -36,6 +39,14 @@ color: var(--_pa-item-fc-hover); } + &:focus-visible { + background-color: var(--_pa-item-bg-focus); + border-color: var(--theme-secondary-400) !important; + box-shadow: inset 0 0 0 var(--su-static2) var(--theme-secondary-400), inset 0 0 0 var(--su-static4) var(--black-050); + color: var(--_pa-item-fc-focus); + outline: var(--su-static2) solid transparent; + } + background-color: var(--_pa-item-bg); border: 1px solid var(--_pa-item-bc); color: var(--_pa-item-fc);