Skip to content
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

[IMPROVE] The icons in the message box have a transition of color change and zoom on hovering #21106

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions app/theme/client/imports/components/message-box.css
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,12 @@
& .rc-input__icon-svg--plus {
transition: transform 0.1s linear;
}
&:hover,
&:focus,
&.active {
color: red;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't use a static red color, this doesn't go well with the design. Also we have dynamic colors, I mean, user can change colors of UI elements, so we should not provide static color values, instead do it like this. The variable message-box-markdown-hover-color contains the color selected by user.

transform: scale(1.5);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think its a good idea to use scaling property, It doesn't go well with UI/UX. This is just my opinion. Other places we are doing linear transform, maybe we can do something like that.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can use linear transform too, but here we would like to keep the time for transition very small, so that's why I used scaling property.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @yash-rajpal,
So any other transition except zoom you have in mind? I'll just do it and make the final commit

}
}

&__action-menu {
Expand Down
Loading