#How to style hovered state of Menu.Item from StylesAPI

6 messages · Page 1 of 1 (latest)

lament oxide
#

Trying to style menu item from menu component. And I`m stuck with hovered state. Found [data-hovered] attribute, but I cant. And also I want to style this in one place - theme.ts with Styles API

Menu: Menu.extend({
  styles: {
    item: {
      "&[data-hovered]": { background: "transparent" },
    },
  },
}),

Plz help )

sinful saffron
lament oxide
#

Little bit stuck, can you provide simple example of how to? Thanks

sinful saffron
lament oxide
#

It works, thank you. So idea of styling the whole app via styles api is like theme.ts and some css files in theme folder?

sinful saffron