-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Properly render 'expand' and 'collapse' action on notification #10471
Properly render 'expand' and 'collapse' action on notification #10471
Conversation
- Fix assignment of class names - Scale icons to better fit the 'close icon' -- Remove hover background as due to the scaling it looks weird -- Use scaling as indicator instead
@vince-fugnitto Thank you for your fast review! I removed the adaptation again and just reduced the scaling a bit to make the icon size match the close icon a bit better. If you want I can remove that as well though. I double checked and I actually made the collapse/expand an action item which it was not before. Without that we do not have a background on which the scaling looked weird. |
@martin-fleck-at I haven't tested your latest changes yet, but based on the gif you sent something still looks incorrect. The behavior should be like the expand-icon.mp4 |
@vince-fugnitto Got it! I updated the change but I removed the scaling now because otherwise it looks weird: |
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.
Great, thanks for taking care of that.
Something didn't seem quite right about the direction of the chevron both in expanded and collapsed form. I took a look at how VSCode handles this. Seems like my intuition proved correct :)
Collapsed:
Expanded:
Do you mind adjusting the rotation of the chevron to align with VSCode? Afterwards, this looks good to go.
@msujew Very good catch! Thank you! I aligned the chevron direction accordingly: |
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.
Thanks, looks great!
- The icon is visible again after your changes. (compared to master)
- The chevron does not increase its size on hover/click.
- The chevron rotation is aligned with vscode for expansion/collapse/hover.
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.
The changes look good to me 👍
The only difference I noticed was that the icons were only visible on hover in vscode, but we do not need to handle that in this pull-request.
What it does
-- Remove hover background as due to the scaling it looks weird
-- Use scaling as indicator instead
Fixes #10470
How to test
Review checklist
Reminder for reviewers