Skip to content

Update ionRangeSlider to use CSS variables in a Bootstrap 5 context #3991

Description

@gadenbuie

ionRangeSlider's sass still uses color functions that result in realized colors -- as opposed to CSS variables -- once compiled.

$bg: $body-bg !default;
$fg: color-contrast($body-bg) !default;
$accent: #428bca !default;
// "Low-level" coloring, borders, and fonts
$line_bg: linear-gradient(to bottom, mix($bg, $fg, 87%) -50%, $bg 150%) !default;
$line_bg_color: mix($bg, $fg, 93%) !default;
$line_border: 1px solid mix($bg, $fg, 80%) !default;

We should either:

  1. Update ionRangeSlider/scss/shiny.scss to avoid these color calculations.
  2. Add ionRangeSlider/scss/bootstrap5.scss to avoid these color calculations in BS5, renaming the current shiny.scss to bootstrap4.scss.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions