-
Notifications
You must be signed in to change notification settings - Fork 78
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(header): scrolling behaviour #1252
base: next
Are you sure you want to change the base?
Conversation
👋 @mivaylo,
Thank you, 🤖 Clarity Release Bot |
This PR introduces visual changes: e1f85a8
|
This PR introduces visual changes: 60af79d
|
This PR introduces visual changes: d34e825
|
This PR introduces visual changes: aaa5927
|
This PR introduces visual changes: 1c804d6
|
This PR introduces visual changes: a966d82
|
This PR introduces visual changes: 7cd827f
|
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: CDE-1659
What is the new behavior?
Does this PR introduce a breaking change?
Other information
BREAKING CHANGES: Removed scroll from body when header nav and subnav are opened, wrapped content of header nav inside nav HTML element
This PR addresses 2 scrolling issues:
Body is scrollable when you open the header nav or subnav and user can scroll the background (which is dimmed). This is in contrast to the behavior that we provide with the modal components, where the background is not scrollable when you open the modal and again scrollable once you close it (if of course the body had been scrollable before opening the modal)
Header nav and subnav are not scrollable and if they contain a big list of menu items they are cut and not visible
Example of first issue:
screen-capture (1).webm
Example of second issue (list is cut and not fully visible as there is no scrollbar):
This PR is opened to next branch because it contains breaking changes
Breaking changes are:
-removed scroller from the body (as well as the added ones to the .header-nav and .subnav)
-the list of nav items in the .header-nav are now wrapped in a new nav HTML element. This is needed as the .header-nav is a modal like DOM part (it has contents and X close button that dims the background, and the X close button is created with Javascript code, so the X close button should not be in the same level as the nav links)
Demo of the changes in the PR:
demo changes.webm