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

[Solved] DropDownList text color in Default theme?

1 Answer 162 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Vince
Top achievements
Rank 1
Vince asked on 12 Aug 2010, 09:10 PM

Using the Default theme, in all of the DropDownList demos the text color is black and no styling is being applied, so I assumed the default text color for the Default theme is black. However, when I create a DropDownList using the Default theme, the text color is dark gray, not black (see the attached screenshot which is created using the code below).

Of course, I can set the text color to black via HtmlAttributes and DropDownHtmlAttributes, but I don't want to do this in case we decide to use a different theme in the future.

What is the text color supposed to be with the Default theme?

Thanks.

<%= Html.Telerik().DropDownList().Name( "ShowSelected" )
    .Items( item => {
        item.Add().Text( "Show all transactions" ).Value( "1" );
        item.Add().Text( "Show selected transactions" ).Value( "2" );
        item.Add().Text( "Hide selected transactions" ).Value( "3" );
    } )
    .SelectedIndex( Profile.SelectOption - 1 )
    .ClientEvents( events => events.OnChange( "onShowSelectedChange" ) )
    .HtmlAttributes( new { style = "width:200px" } )
%>

1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 13 Aug 2010, 07:56 AM
Hello Vince,

We haven't set the color of the drop-down in the Default theme. We will do right away (and it should be black).

All the best,
Alex Gyoshev
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
Tags
ComboBox
Asked by
Vince
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or