Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uui-range-slider overhaul #436

Merged
merged 6 commits into from
Mar 31, 2023
Merged

Conversation

loivsen
Copy link
Contributor

@loivsen loivsen commented Mar 8, 2023

The range slider had a number of problems with z-index and able to pick values outside the step setting or min/max gaps.
It was also one of the first things that I created, so the codebase was really difficult to read.

I've made this overhaul to fix the issues, as well as making an attempt to make the code a little more readable.

There shouldn't be any breaking changes.

Things to keep in mind:

  • Its important that we cannot pick values outside the step value, min gap, or max gap.
  • Dragging both values should feel "natural". Currently it feels a bit wonky in the new backoffice as a property editor, but feels normal in the UUI library. This overhaul has not been tested in the new backoffice.

@loivsen loivsen marked this pull request as draft March 8, 2023 09:29
Copy link
Contributor

@iOvergaard iOvergaard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@iOvergaard
Copy link
Contributor

Oh, didn't see this was a draft PR. Waiting to see what happens with it :)

@loivsen loivsen marked this pull request as ready for review March 31, 2023 08:44
@iOvergaard iOvergaard added the bug Something isn't working label Mar 31, 2023
@iOvergaard iOvergaard merged commit bc7a783 into v1/contrib Mar 31, 2023
@iOvergaard iOvergaard deleted the bugfix/uui-range-slider-overhaul branch March 31, 2023 12:56
@iOvergaard iOvergaard changed the title Bugfix/uui range slider overhaul uui-range-slider overhaul Mar 31, 2023
iOvergaard added a commit that referenced this pull request Apr 20, 2023
* range-slider overhaul

* tests

* block

* add .nvmrc to indicate which node version to use

* increase memory on build tasks

---------

Co-authored-by: Jacob Overgaard <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants