I assume that you have a page with menus like below
The default style for the menu with alta ui theme looks like below
If you want to change the look and feel of the menu, then we need to add few component level style selectors.
I assume that you have a css file ready to put the custom styles that we are going to use.With the below seectors you can play around to change the look and feel
/*menu hover*/
af|menu:hover{
border : 1px solid rgb(0,198,198) ;
background-color: white;
}
/*menu hover --> menu text hover*/
af|menu:hover af|menu::bar-item-text:hover{
color: rgb(0,205,205);
}
/*menu pressed*/
af|menu:depressed{
border : 1px solid rgb(0,198,198) ;
background-color: rgb(0,205,205);
color: White;
}
/*menu pressed and hover --> menu text hover, menu pressed --> menu text*/
af|menu:depressed:hover-target af|menu::bar-item-text, af|menu:depressed af|menu::bar-item-text{
background-color: rgb(0,205,205);
color: White;
}
/*menu item hover --> menuitem icon style, menu item hover --> menu item text, menu item hover --> menu item open indicator*/
af|commandMenuItem::menu-item:hover-target af|commandMenuItem::menu-item-icon-style,
af|commandMenuItem::menu-item:hover-target af|commandMenuItem::menu-item-text,
af|commandMenuItem::menu-item:hover-target af|commandMenuItem::menu-item-open-indicator{
background-color: rgb(0,205,205);
color: White;
}
With this css we will get the menu styled like below
Comments
Post a Comment