This is a migrated thread and some comments may be shown as answers.

[Solved] Remove t-state-hover

6 Answers 101 Views
Menu
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Gabe
Top achievements
Rank 1
Gabe asked on 13 May 2011, 10:46 PM
How can I remove the t-state-hover on the menu parent only.
I would like the hover class to be applied on the child items in each of the drop menus though, just want to remove it out of the main menu only.

6 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 14 May 2011, 09:39 AM
Hi Gabe,

 The hover state is applied always when the user hovers a menu item. Modifying this behavior would require modification of the source code to exclude the root items. I see only one workaround - modifying the skin so the hover style looks the same as the default one for the first level items only.

Regards,

Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Gabe
Top achievements
Rank 1
answered on 18 May 2011, 06:19 PM
How can I change this for only the parent when the same style is also applied to the children.
Can you give me an example?
0
Atanas Korchev
Telerik team
answered on 19 May 2011, 07:15 AM
Hi Gabe,

 Which skin are you using? We will provide the right CSS rule overrides depending on that.

Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Gabe
Top achievements
Rank 1
answered on 19 May 2011, 02:46 PM
I am using the simple skin
0
Accepted
Dimo
Telerik team
answered on 19 May 2011, 04:45 PM
Hello Gabe,

You can use the following CSS code to override the Menu's root items' hover styling:


/* prevent background color change */
.t-menu>.t-item>.t-state-hover
{
    background:transparent;
}
 
/* prevent arrow color change */
.t-menu>.t-item>.t-state-hover>.t-arrow-down
{
    background-position:-16px -176px;
}


Kind regards,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Gabe
Top achievements
Rank 1
answered on 19 May 2011, 04:59 PM
Worked perfect, thank you.
Tags
Menu
Asked by
Gabe
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Gabe
Top achievements
Rank 1
Dimo
Telerik team
Share this question
or