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

When hovering, an unnecessary underline appears by location.

4 Answers 69 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
kako
Top achievements
Rank 1
kako asked on 11 Jan 2018, 07:29 AM

Hi.

I use Metro theme.

When hovering a combo box, an unnecessary green underline appears by location.

It is the first combo box of the following sample.

http://dojo.telerik.com/IkaMUs

(I confirmed it with chrome.)

Is there a way to fix this problem?

4 Answers, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 15 Jan 2018, 06:45 AM
Hello Kako,

In the dojo example 14px font-size is applied:
<style>html { font-size: 14px; font-family: Arial, Helvetica, sans-serif; }</style>

which causes this thin green line (the background of the wrapping span element) to be visible on hover. You can prevent this by increasing slightly the ComboBox input's default height, for example:
<style
  .k-combobox .k-input {
    height: 2.035em;
  }
</style>

Regards,
Ivan Danchev
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
kako
Top achievements
Rank 1
answered on 15 Jan 2018, 07:41 AM

Hello Ivan.

Thank you for your answer.But, if font-size is changed, for example 16px, I need to change the ComboBox input's default height each time?

After asking this question, I tried setting the ComboBox input's height to the ComboBox wrap's default height.

Then, with every font size, I could hide the green line.

http://dojo.telerik.com/IkaMUs/4

Is this method wrong?

0
Ivan Danchev
Telerik team
answered on 16 Jan 2018, 03:08 PM
Hello Kako,

Both approaches 1. setting the input height or 2. setting the element with class "k-dropdown-wrap" height as you do in the dojo example you linked in your last reply, work identically at my end when using different font-sizes, so either of them can be used to hide the line.

Regards,
Ivan Danchev
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
kako
Top achievements
Rank 1
answered on 17 Jan 2018, 12:27 AM
OK, thank you very much !!
Tags
ComboBox
Asked by
kako
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
kako
Top achievements
Rank 1
Share this question
or