Skip to content

Commit

Permalink
Merge pull request #12 from nguyenyou/feat/add-hover-modifier
Browse files Browse the repository at this point in the history
add hover modifier
  • Loading branch information
nguyenyou authored May 26, 2024
2 parents 25f21c7 + 443a51d commit f1dc08d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/chilly-zoos-notice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"scalawind": patch
---

add hover modifier
2 changes: 2 additions & 0 deletions packages/scalawind/src/templates/scalawind.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ object tw {
def bg_white: SwStyle = SwStyle().addClass(cls.bg_white)
def text_white: SwStyle = SwStyle().addClass(cls.text_white)
def text_black: SwStyle = SwStyle().addClass(cls.text_black)

def hover(hoverStyle: TwStyle): TwStyle = TwStyle().hover(hoverStyle)
}

inline def sw(inline styles: SwStyle): String =
Expand Down

0 comments on commit f1dc08d

Please sign in to comment.