Make inputs and search bars work better with icons and labels #266
-
Feature RequestDescription
Both retain their full border-radius Example and testcasehttps://jsfiddle.net/Angius/sz5kawre/9/ Screenshot |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
I think this may have something to do with |
Beta Was this translation helpful? Give feedback.
-
@Atulin When working with left/right labeled input/search make sure the html-code for the label is actually set in the appropriate order in the dom.
I adjusted your fiddle accordingly Regarding the border: The labels themselves (in your fiddle) do not have a border at all. When you replace your border setting to Nevertheless, i agree and confirm about the border radius of the attached label and the obsolete left border of the input. Although this is not much visible and disturbing IMHO, i'll prepare a little PR to fix that 😉 |
Beta Was this translation helpful? Give feedback.
-
Ah, yes, looks like reordering the elements does fix the issue. Thanks for that info, and for the upcoming PR 👌 |
Beta Was this translation helpful? Give feedback.
-
Turns out, it all works without any change to FUI as expected, if you always order the dom-tags for icon, input and label in the desired and described order: left icon right labeled<div class="ui left icon right labeled input">
<i class="icon"></i>
<input>
<div class="label"></div>
</div right icon left labeled<div class="ui right icon left labeled input">
<div class="label"></div>
<input>
<i class="icon"></i>
</div See here |
Beta Was this translation helpful? Give feedback.
Turns out, it all works without any change to FUI as expected, if you always order the dom-tags for icon, input and label in the desired and described order:
left icon right labeled
right icon left labeled
See here
https://jsfiddle.net/051prbce/1/