The autocomplete throbber is visible even if there is no search. It is because of the padding given to text fields.
Attached is the screenshot.
What is the best way to fix it? In the sub-theme css or in the theme itself?
select, textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input {
border-radius: 4px 4px 4px 4px;
color: #555555;
display: inline-block;
font-size: 14px;
height: 20px;
line-height: 20px;
margin-bottom: 10px;
padding: 4px 6px;
vertical-align: middle;
}
Comments
Comment #1
Sinan Erdem commentedForgot to add the screenshot. Attaching here...
Comment #2
markhalliwellMoving this to 3.x. I'd actually like to remove core's throbber and incorporate the new .glyphicon-refresh icon with css3 animation here.
Comment #3
kslonka commentedMark: Where (and how) would you like the element inserted? (input group?)
More info:
Class responsible for throbber
it should be in overrides.less
Comment #4
el7cosmosHow about this? Could be better approach, im not really into javascript and accessibility.
Css animation taken from font awesome.
Comment #5
markhalliwell@el7cosmos, wow! This is awesome! Just one minor suggestion (to make it a little more aesthetically pleasing):
Comment #6
markhalliwellLet's name this bootstrap.autocomplete.js. I still need to rename the other files.
Also, if you could maybe style the dropdown a little better too (to be more "bootstrap" like) that would be awesome. We can create another issue for that if you want though.
Comment #7
markhalliwellGrr, nevermind
#autocompletein #5, I misunderstood the hierarchy. We should insert a class for the textfield element's wrapper (where.form-type-textfieldis when autocomplete is detected. Something like:.form-autocompletemaybe? Idk. That selector would help us style the glyphicon. Also the initial color of the icon should be:@gray-light. As far as the dropdown styling goes, could we inject some bootstrap panel classes? That seems like it might be an easier way to style it quickly I think. Just a thought.Comment #8
el7cosmosLike this?
Comment #9
el7cosmosdiff to previous patch
Comment #10
markhalliwell@gray-lightshould be the default and then make the spin@brand-primary.Comment #11
el7cosmosWhats with dropdown? i'll look at it later
Comment #12
el7cosmosOoops...i think this is what you mean with color
Comment #13
el7cosmosWith renamed js file
Comment #14
markhalliwellMissed the rename here.
Comment #15
el7cosmos#13
Comment #16
el7cosmosSorry i missed it
Comment #17
markhalliwellHere's the patch without the compiled CSS (patch in #16 does apply cleanly anymore). We should probably stop putting this in patches and just let maintainers act as a gatekeeper to compile them.
Comment #18
markhalliwellThanks @el7cosmos!
Committed 9348d72 to 7.x-3.x.
Comment #19
markhalliwellCreated follow-up: #2097823: Style autocomplete drop downs
Comment #20
el7cosmosuh, sorry for compiled css, my bad
thanks @mark
Comment #21
markhalliwellComment #23
latuminggi commented-
Comment #25
markhalliwell