-
Notifications
You must be signed in to change notification settings - Fork 25
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
Change labels filter to dynamic height, fixed width, and shadow scroll bar #163
Conversation
Additionally, when using the filter input to search for specific labels, if none of the labels match the search text, there is no indication that there are no labels found. Should we add some form of indication like |
Good to have enhancement, can create a new issue. |
Created the issue here! #164 |
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.
LGTM except for showing the scrollbar
@Eclipse-Dominator Was it preferred to hide the scrollbar for LabelFilterComponent?
I think we can look into using shadow scroll instead of scrollbar because there is a bit of jitter when the scrollbar disappears as the labels are filtered
I think my original decision to remove the scrollbar was to preserve spacing for the popup menu as well as to keep the popup bar cleaner. I think the argument for having the scrollbar is also valid. It might be better if we can look into using shadow scroll. I think the jitter can also be solved if the menu width size is fixed? What do you think? @seetohjinwei |
I think we can go with shadow scroll to keep with the style. Doesn't make sense to add accessibility for only the label filters but not the issue cards. |
Hi! Do you mean something like this: https://plainenglish.io/blog/how-to-create-horizontal-vertical-scroll-shadows? I could try to do it |
Yes. Let's use css, not the javascript one. You can also refer to #148 |
Alright, thanks! I'll try to make these changes tonight |
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.
LGTM other than perhaps have a similar shadow to the dashboard ver where the shadow at the edge is thinner than the center? Right now the corner looks a bit jarring
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.
LGTM!
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.
One thing you could consider is having the padding inside the scrollable container, so something like this mock-up. Can also remove bottom padding altogether. Maybe also change radial gradient from 0.5 to 0.7 alpha to thicken the bottom shadow.
At the end, do remember to change your PR title and commit message to the new implementation.
I've removed the padding from the outer container, and re-added it to just the search input. I think the scroll-container looks a bit better without padding? I've also removed the top and bottom paddings of the entire popup menu, and changed the radial gradient value. But, I did notice that the content is rendered above the scroll shadow, which is obvious with the coloured labels, I think #173 is related to this, so I'll try and re-implement the changes made there to this PR once that's done too. |
@seetohjinwei #173 has been merged! |
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.
LGTM
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.
LGTM
Summary:
Fixes #160
Changes Made:
scroll-container
'sheight
to bemax-height
scroll-container
'swidth
to be a fixed width of280px
Commit Message:
Tested on Chrome, Firefox, Safari.