DoSomething / forge

🎨 The DoSomething.org pattern library.
http://forge.dosomething.org
MIT License
48 stars 14 forks source link

Bug when adding a label for select dropdown #534

Closed weerd closed 8 years ago

weerd commented 8 years ago

image

The carrot uses a negative margin to set its placement, but relative to the div container and not the actual select dropdown. Either make it a pseudo element of the <select> or if there are issues with that, align relative to something else..,

weerd commented 8 years ago

I was being dumb. Need to wrap the <div class="select"> in a <div class="form-item"> div and insert the label as a child of the <div class="form-item"> not as a child of the <div class="select">