Support inactive buttongroup items
Change-Id: I7939a0554301656ad4df56a17143704dc3cbe5b4
diff --git a/Changes b/Changes
index 4835496..b01a274 100755
--- a/Changes
+++ b/Changes
@@ -1,4 +1,4 @@
-0.43 2021-10-28
+0.43 2021-11-04
- New menu class that has an entry at the very end,
similar to the input text prefix,
that is always available. (lerepp)
@@ -39,6 +39,7 @@
- Support CSP disabling.
- Update intro.js (#109; hebasta)
- Introduce pagination panel.
+ - Support for inactive buttongroup items.
0.42 2021-06-18
- Added GitHub based CI for perl.
diff --git a/dev/scss/base/buttongroup.scss b/dev/scss/base/buttongroup.scss
index 42dfbdb..1937e53 100644
--- a/dev/scss/base/buttongroup.scss
+++ b/dev/scss/base/buttongroup.scss
@@ -25,7 +25,7 @@
border-style: solid;
border-width: $border-size 0;
- &:hover {
+ &:not(.inactive):hover {
@include choose-hover;
transition: none;
}
diff --git a/lib/Kalamar.pm b/lib/Kalamar.pm
index 52b6e15..b6a5db0 100644
--- a/lib/Kalamar.pm
+++ b/lib/Kalamar.pm
@@ -218,7 +218,7 @@
$self->plugin('TagHelpers::Pagination' => {
prev => '<span><span><</span></span>',
next => '<span><span>></span></span>',
- ellipsis => '<a class="ellipsis"><span><span>...</span></span></a>',
+ ellipsis => '<a class="ellipsis inactive"><span><span>...</span></span></a>',
separator => '',
current => '<span>{current}</span>',
page => '<span>{page}</span>'
diff --git a/t/query.t b/t/query.t
index b82d769..737dbb6 100644
--- a/t/query.t
+++ b/t/query.t
@@ -164,6 +164,7 @@
# Total pages
->element_count_is('#pagination > a', 7)
->text_is('#pagination a:nth-of-type(6) span', 7291)
+ ->element_exists('#pagination a.ellipsis.inactive')
->content_like(qr!${q}count${q}:2!)
->content_like(qr!${q}startIndex${q}:0!)
->content_like(qr!${q}itemsPerPage${q}:2!)