-
Notifications
You must be signed in to change notification settings - Fork 10.6k
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
[IMPROVE] The icons in the message box have a transition of color change and zoom on hovering #21106
Changes from 5 commits
722823d
3b7b7c1
151c000
7b8aec9
a298936
bfc9628
7265e06
f56d851
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -144,6 +144,12 @@ | |
& .rc-input__icon-svg--plus { | ||
transition: transform 0.1s linear; | ||
} | ||
&:hover, | ||
&:focus, | ||
&.active { | ||
color: red; | ||
transform: scale(1.5); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hey @yash-rajpal, |
||
} | ||
} | ||
|
||
&__action-menu { | ||
|
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.
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.