I have an example page at the following URL that has the Kendo CSS files placed after my main CSS file but yet the Kendo CSS text-decoration: none in the k-button style is being overriden by my main CSS file. Shouldn't the Kendo's CSS rules override my main CSS rules since they are placed after the main CSS file in the header?
http://example.rengr.co
http://example.rengr.co
6 Answers, 1 is accepted
0
RES
Top achievements
Rank 1
answered on 17 Jan 2014, 06:49 PM
I'm sorry I forgot to mention this issue occurs on hover.
0
Accepted
Hi,
The observed issue is caused by a:hover selector has higher specificity than .k-button. Hence in order to achieve the expected result you could add the following CSS rule:
Regards,
Iliana Nikolova
Telerik
The observed issue is caused by a:hover selector has higher specificity than .k-button. Hence in order to achieve the expected result you could add the following CSS rule:
.k-button:hover{
text-decoration
:
none
;
}
Regards,
Iliana Nikolova
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
RES
Top achievements
Rank 1
answered on 18 Feb 2014, 01:21 AM
From what I've read a class selector has a higher specificity than an element selector so why would the a:hover rule be overriding the .k-button rule?
0
RES
Top achievements
Rank 1
answered on 18 Feb 2014, 05:45 PM
Okay I get it now when I look at the rule for .k-button:hover there is no text-decoration: none;. So shouldn't this rule explicitly specify this specially for cases like this so you don't have to patch Kendo's CSS?
0
Hi,
Your suggestion sounds OK - we will add text-decoration: none rule for the a.k-button:hover elements with the next Kendo UI release.
Regards,
Iliana Nikolova
Telerik
Your suggestion sounds OK - we will add text-decoration: none rule for the a.k-button:hover elements with the next Kendo UI release.
Regards,
Iliana Nikolova
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
RES
Top achievements
Rank 1
answered on 19 Feb 2014, 06:07 PM
Sounds good, thanks.