-
Notifications
You must be signed in to change notification settings - Fork 11
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
bug: LdTabs inside LdSidenav moves content on changing tab index #792
Comments
dpitois
added
bug
An issue describing unexpected or malicious behaviour.
triage
An issue that needs assessment to determine its validity and urgency
labels
Jun 29, 2023
borisdiakur
added
confirmed
This label indicates that the issue has been reproduced and verified by the core team.
and removed
triage
An issue that needs assessment to determine its validity and urgency
labels
Jun 30, 2023
borisdiakur
added
the
in progress
This label indicates that the issue is currently being worked on.
label
Jun 30, 2023
dpitois
changed the title
bug:
bug: LdTabs inside LdSidenav moves content on changing tab index
Jun 30, 2023
borisdiakur
added a commit
that referenced
this issue
Jun 30, 2023
Background: We want the tablist to scroll in a way that the selected tab is presented in the horizontal middle of the scroll area. We initially chose to use the scrollIntoView() method with the inline: 'center' option for this. However, this results in scrolling of elements wrapping the ld-tabs component as well. This change addresses the issue by replacing the usage of scrollIntoView() with the usage of the scrollTo() method. Fixes #792
10 tasks
borisdiakur
added a commit
that referenced
this issue
Jul 3, 2023
Background: We want the tablist to scroll in a way that the selected tab is presented in the horizontal middle of the scroll area. We initially chose to use the scrollIntoView() method with the inline: 'center' option for this. However, this results in scrolling of elements wrapping the ld-tabs component as well. This change addresses the issue by replacing the usage of scrollIntoView() with the usage of the scrollTo() method. Fixes #792
borisdiakur
added a commit
that referenced
this issue
Jul 3, 2023
Background: We want the tablist to scroll in a way that the selected tab is presented in the horizontal middle of the scroll area. We initially chose to use the scrollIntoView() method with the inline: 'center' option for this. However, this results in scrolling of elements wrapping the ld-tabs component as well. This change addresses the issue by replacing the usage of scrollIntoView() with the usage of the scrollTo() method. Fixes #792
github-actions bot
pushed a commit
that referenced
this issue
Jul 3, 2023
## [5.6.3](v5.6.2...v5.6.3) (2023-07-03) ### Bug Fixes * **ld-tabs:** replace scroll into view with scroll to ([2219a07](2219a07)), closes [#792](#792)
🎉 This issue has been resolved in version 5.6.3 🎉 The release is available on: 📦🚀 |
borisdiakur
added
released
and removed
in progress
This label indicates that the issue is currently being worked on.
labels
Jul 3, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prerequisites
Liquid version
5.5.0
Framework bindings
React
Current behavior
In our project we want to use LdSidenav as a details panel display on the right.
Some details content are display using LdTabs (and related Ld components), and it is display as expected:
When user clicks on the last tab, the LdTab moves to the left
Expected behavior
Clicking on tabs should not move elements inside the LdSidenav content.
Steps to reproduce
Code reproduction URL
https://github.com/dpitois/liquid-sidenav-tabs
Additional information
No response
The text was updated successfully, but these errors were encountered: