-
Notifications
You must be signed in to change notification settings - Fork 601
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
Feature/#340 UI scroll refactor #342
Conversation
…ontext !== null; and added boolean for showDropdown, to show edit layer info dropdown
…yer description dropdown
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Summary: fantastic start, all the required changes are there but it needs a bit of cleanup.
Toolbar section headers
When the tabs are hidden, the toolbar section headers are as well. This is fine. However, the sleight overlap with the toolbar creates a white pixel within the toolbar, which looks strange. Removing the white border or the overlap should rectify this issue. The white border is for visibility when many layers are open simultaneously.
Also interacts strangely with tabs when window is narrow or many tabs are present:
Create layer from other layers compatability
- Create layer from other layers marks tabs with a variable name for use in the score input. The variable marker is no longer aligned readibly due to the padding removal:
- The user can scroll in that interface, hiding the layer variable marker from view when the tabs hide. It may be worth only allowing the tabs to be hidden on scroll when on a layer tab. Alternatively, move the layer variables from the tabs themselves into a list adjacent to the input (would require documentation updates)
- Image in help page of layer variables probably needs to be recreated with new UI:
Bug with changing tabs
If the user scrolls partway down the page and then closes the last tab or switches tabs otherwise, the tab bar may be hidden even though the scroll is now at the top of the screen. This can make the tabs bar inaccessible. To fix this, recompute the amount of hidden tab every time a layer is changed.
Active tab color and style
- Active tab doesn't need the bottom border color (a separate element of class and type
mat-ink-bar
) since it's already denoted by background color:
- Tab is actually a different color than the toolbar. It should be the same color. This is because
mat-tab-link
has an opacity of 0.6 when not focused. Removing this will improve the UI:
Invisible help button
For some reason there is an invisible help button to the right of the new tab button.
Seems to be a white help button that is usually invisible, can be seen when banner is present:
Screen.Recording.2021-08-31.at.3.03.01.PM.mov
Closing a tab enables the accessibility scroll arrows
Closing a layer tab for some reason enables the scroll arrows even though there's nothing to scroll to. Opening a new tab removes them.
Banner issues
Banner interacts strangely with tabs, and the help button in the banner is not properly aligned.
Banner should scroll out of view alongside tabs, but currently only the tabs area scrolls when the user scrolls.
…ready on the active tab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! I have found a few bugs and have one design concern.
-
the floating help button covers some of the layer controls when scrolled. Maybe the help button shouldn't be floating, and instead scroll out of view when the tabs hide?
-
When the banner is present, the user can create multiple scrollable areas if the viewport is short, which is a bit strange. Depending on mouse position different areas scroll which is very strange to work with:
…tion changed, and when scroll up both header and footer should show; otherwise hide both
No description provided.