Skip to content

Commit

Permalink
feat(shiny-preset): Center slider handle without changing size
Browse files Browse the repository at this point in the history
  • Loading branch information
gadenbuie committed Jul 18, 2023
1 parent 80fd327 commit a3325d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inst/builtin/bs5/shiny/ionrangeslider/_rules.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}

.irs-handle {
top: $handle_radius + 1px;
top: $top - ($handle_height / 2) + ($line_height / 2);
}

.irs-bar {
Expand Down
2 changes: 1 addition & 1 deletion inst/builtin/bs5/shiny/ionrangeslider/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $handle_color_hover: tint-color($handle_color, 15%) !default;
$handle_border: none !default;
$handle_box_shadow: none !default;
$handle_radius: $top - 10px !default;
$handle_height: 18px !default;
$handle_height: 19px !default;
$handle_width: $handle_height !default;

$bar_color: $component-active-bg !default;
Expand Down

0 comments on commit a3325d5

Please sign in to comment.