kirbydesign / designsystem

Kirby Design System
https://cookbook.kirby.design
MIT License
84 stars 22 forks source link

Refactor interaction state solution and apply hover #2008

Closed jkaltoft closed 2 years ago

jkaltoft commented 2 years ago

📣 Update: Implement state layer based solution

Other than <button> which components and elements should utilize the apply-hover() mixin?

A quick search for :hover says it's only the calendar component and the chip component.

The chip components is (apparently) the only place we use the theme-background() mixin. Consider if there's room for improvement, i.e., can it be replaced by using the apply-hover() mixin?

Consider splitting this issue into at least 3 separate issues: Calender, Chip and Item + Dropdown.

Button

Calendar

Chip

Item and Dropdown

Other Components

Refactor interaction state solution and apply hover - Part 2

See #2028

Misc.

Note: If this issue is a can of worms in terms of rewriting chip scss & theme-background mixin - it should be split into a seperate issue.

jkaltoft commented 2 years ago

Consider to move the hover() mixin to libs/core/src/scss/interaction-state/_hover.scss