Hovers are different

When we had a lot of components in the library in eLama, we noticed that hovers do not have a system: the fill color, frame color, text color changes, a shadow appears, etc.





We did it not out of malice, it worked better in some projects, but looking at the interface as a whole, it became clear that this was a problem.





Even similar components had different hovers
Even similar components had different hovers

Not everything is what it seems

When developing interfaces, we rely on the principle that what you do should work as the user expects. If the user sees a button in front of him, then he will expect the behavior of the button from it, which means that it should behave as expected.





For example, in our library we have a link and a button that visually resembles a link. Due to the fact that there was no strong difference in their behavior when hovering, the question might arise, what will happen when pressed - will it jump to another page, or the action will be on the current page. At first, there were even cases when developers used a button as a link, guided by the fact that it looks and behaves like a link when hovering.





It turned out that it may not be obvious to everyone that these are two different components.
It turned out that it may not be obvious to everyone that these are two different components.

What kind of hovers are there

1. ( )





This is how it looks in Notion
Notion

2. ( )





This is how the filter button behaves in Jira
Jira

3.





An example from Habr

4.





Can be seen on the Yandex home page

5. (, ..)





Google calendar button
Google

6. ( , ..)





Fancy button from nyc.awwwards.com
nyc.awwwards.com

, , , , , -.





Button, SelectList, Table, Chip, Lable, Switch, Pagination,





:





β€” 3 .





, . .





(: tooltip ) , (, toast)





Example of an active button

Rating





:





, . -, , . , , .





RadioLine, CheckLine Tab





:





RadioLine, CheckLine β€” .





: RadioLine β€” , .





Jamb in animation in slowuuumo

Checkbox





:





: β€” β€” β€” .





Input, MultiInput, TextArea, Select, Radiobutton





:





- β€” . , , , .





InputFile





β€” . , , .





Link Button





, .





, .





, . , . , , . , .





But there may be partial animation, for example, as we did for pagination - when you hover over a page number, the background appears smoothly, but when the cursor leaves it, the background disappears instantly. This was done to avoid the situation when you move the cursor over the numbers quickly and several substrates are visible at the same time, because new ones appear when the previous ones have not yet disappeared.








All Articles