question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dropdown elements have different font sizes for no reason

See original GitHub issue

Hi,

Please check this -> http://quemfazsite.com.br/temp/criar-site-erro.php

I have 2 dropdowns, one using a more “stylish” approach and another using the plain and simple <select> element. You can see that the element on the right (that uses the select) has a different font-size and a different line-height. Is there any way to overcome this?

I know I could use the element on the left and replicate it many times as I want instead of using the element in the right! BUT I have a problem: my company is developing an enterprise level system administration and in one single page it has 70 selects! Yeap! Using the approach in the left makes the final outputed HTML really big (at least 3x!), so I really would like to use the select approach. Of course, you could tell me to use only the select approach BUT in some cases I really need a searcheable dropdown (exactly the one in the left).

As far as I know I am using the ui action input parent (as you already taught me before) and I am using the same size big in both elements.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
awgvcommented, Sep 9, 2017

@batata004 Yes. .ui.action.input is just a convenient container that not only sets the sizes, but also fixes borders and margins to allow the components to exist as a single thing. Without it, you’d have to write a custom replacement, which you can do as well.

The button issue is actually a problem, good catch. I won’t be labeling and reopening the issue—I was planning to work on SUI tomorrow anyway, so I’ll just bookmark the thread and open a PR then; the fix should be pretty straightforward.

0reactions
lubber-decommented, Oct 6, 2022

Fixed since Fomantic-UI 2.5. Actually SUI misses font sizes for dropdown, that is the main cause of this issue See https://jsfiddle.net/bdv5q3r9/

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I change the font-size of an <option> element within ...
I am ideally looking for the select options to be font size 14px. Is this possible to do? I am willing to make...
Read more >
Forms- Fonts- Setting Fonts In A Drop-Down Menu
The only difference is that we can define the exact font size we want using the style sheet, whereas Netscape has to use...
Read more >
Change size of dropdown box text but not 'Select Option'
Hello,. I have used css to change the font size (to 11.5px) of the 'Ability Level' options on my form so that all...
Read more >
Will dropdown font sizes ever be fixed?
I know others have already reported this, but the font size in dropdown choices does not always match the size of the selected...
Read more >
How to Change Drop-down Width and Font Size in Excel
The simple solution is to widen the column that the drop-down box is in. You can adjust the column manually by dragging the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found