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

fix(Slider): use numbers instead of css reverse when reversing slider #1532

Merged
merged 1 commit into from
Aug 26, 2022

Conversation

tujoworker
Copy link
Member

@tujoworker tujoworker commented Aug 26, 2022

Sorry to spam with yet another Slider PR.

This time, we remove the CSS reverse usage, because, if we want a Tooltip inlined, it gets reversed too. So now we only used numbers to reverse the behavior. Also to note, if vertical is true, we use actually reverse internally. So its not only for the reverse property.

Here is a CSB and a demo to test out.

@tujoworker tujoworker requested a review from anderspk August 26, 2022 07:56
@codesandbox-ci
Copy link

codesandbox-ci bot commented Aug 26, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit fb30c0f:

Sandbox Source
eufemia-starter Configuration
eufemia-slider-reversed PR

@gatsby-cloud
Copy link

gatsby-cloud bot commented Aug 26, 2022

Gatsby Cloud Build Report

DNB Eufemia Portal

🎉 Your build was successful! See the Deploy preview here.

Build Details

View the build logs here.

🕐 Build time: 18m

Performance

Lighthouse report

Metric Score
Performance 🔶 67
Accessibility 💚 100
Best Practices 💚 100
SEO 💚 92

🔗 View full report

@tujoworker tujoworker merged commit e2e83a0 into main Aug 26, 2022
@tujoworker tujoworker deleted the fix/slider-reverse branch August 26, 2022 10:57
tujoworker pushed a commit that referenced this pull request Aug 29, 2022
# [9.30.0](v9.29.0...v9.30.0) (2022-08-29)

### Bug Fixes

* **Slider:** fix reverse with min and max defiend ([#1533](#1533)) ([6c169b4](6c169b4))
* **Slider:** prevent onChange being called with same value ([#1528](#1528)) ([115b056](115b056))
* **Slider:** use numbers instead of css reverse when reversing slider ([#1532](#1532)) ([e2e83a0](e2e83a0))
* **Theme:** correct DNB Eiendom state colors mint-green-50 to pistachio ([#1527](#1527)) ([b7f532e](b7f532e))
* **withCamelCaseProps:** make exception for className ([#1534](#1534)) ([a0a0082](a0a0082))

### Features

* **Slider:** add multiThumbBehavior property ([#1526](#1526)) ([f835651](f835651))
@tujoworker
Copy link
Member Author

🎉 This PR is included in version 9.30.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

1 participant