Skip to content

Commit

Permalink
fix(input_slider): Make sure last used handle is always above others (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
gadenbuie authored Sep 27, 2024
1 parent 9d12b0f commit c489fef
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
8 changes: 6 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,18 @@

* Small improvements to the default pulse busy indicator to better blend with any background. It's also now slightly smaller by default. (#4122)

## Bug fixes

* Fixed a bug in `conditionalPanel()` that would cause the panel to repeatedly show/hide itself when the provided condition was not boolean. (@kamilzyla, #4127)

* Fixed a bug with `input_slider()` when used as a range slider that made it impossible to change the slider value when both handles were at the maximum value. (#4131)

# shiny 1.9.1

## Bug fixes

* Fixed a bug introduced in v1.9.0 where the boundaries of hover/click/brush regions on plots were being incorrectly scaled when browser zoom was used. (#4111)

* Fixed a bug in `conditionalPanel()` that would cause the panel to repeatedly show/hide itself when the provided condition was not boolean. (@kamilzyla, #4127)

# shiny 1.9.0

## New busy indication feature
Expand Down
4 changes: 4 additions & 0 deletions inst/www/shared/ionrangeslider/css/ion.rangeSlider.css
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,10 @@
z-index: 2;
}

.irs--shiny .irs-handle.type_last {
z-index: 3;
}

.irs--shiny .irs-handle.state_hover, .irs--shiny .irs-handle:hover {
background: #fff;
}
Expand Down
5 changes: 5 additions & 0 deletions inst/www/shared/ionrangeslider/scss/shiny.scss
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,11 @@ $font-family: $font-family-base !default;
border-radius: $handle_width;
z-index: 2;

&.type_last {
// Ensure last-used handle is on top if it overlaps with another handle
z-index: 3;
}

&.state_hover,
&:hover {
background: $handle_color_hover;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ new file mode 100644
index 00000000..ba052f8b
--- /dev/null
+++ b/inst/www/shared/ionrangeslider/scss/shiny.scss
@@ -0,0 +1,201 @@
@@ -0,0 +1,206 @@
+/* 'shiny' skin for Ion.RangeSlider, largely based on the 'big' skin, but with smaller dimensions, grayscale grid text, and without gradients
+© Posit, PBC, 2023
+© RStudio, Inc, 2014
Expand Down Expand Up @@ -149,6 +149,11 @@ index 00000000..ba052f8b
+ border-radius: $handle_width;
+ z-index: 2;
+
+ &.type_last {
+ // Ensure last-used handle is on top if it overlaps with another handle
+ z-index: 3;
+ }
+
+ &.state_hover,
+ &:hover {
+ background: $handle_color_hover;
Expand Down

0 comments on commit c489fef

Please sign in to comment.