Opened 13 years ago
Closed 13 years ago
#20584 closed defect (bug) (fixed)
Styling and RTL style fixes for user/site autocomplete
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.4 | Priority: | normal |
Severity: | normal | Version: | 3.4 |
Component: | RTL | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
Related: #19810
Attachments (9)
Change History (29)
#2
in reply to:
↑ 1
@
13 years ago
Replying to nacin:
Maybe in the process we could make it look slightly better overall?
Perhaps something like this? Can upload the patch to this ticket and repurpose it or make another one for general styling.
#3
follow-up:
↓ 5
@
13 years ago
Looks great. Perhaps chop off the rounded corners on the top so it integrates nicely into the input. Or maybe not. I don't care. Looks way better than we have now.
#4
@
13 years ago
- Summary changed from RTL style fixes for user/site autocomplete to Styling and RTL style fixes for user/site autocomplete
#5
in reply to:
↑ 3
@
13 years ago
Replying to nacin:
Perhaps chop off the rounded corners on the top so it integrates nicely into the input.
20584.styling2.diff accomplishes this (also changes the input focus border color for blue in general - there wasn't one at all before):
Otherwise, 20584.styling.diff
Edit: note that neither of my patches includes the RTL fixes from ocean90.
#7
@
13 years ago
- Owner set to ryan
- Resolution set to fixed
- Status changed from new to closed
In [20705]:
#8
@
13 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
I have been experimenting with the autocomplete jQuery widget included in the core to pull in post titles. Because the length of any post can be longer than expected this results in the autocomplete box being longer than the input box and causes an issue with the top border (see attached screenshot).
In circumstances like this the original design where the top border retains the rounded corners works best. If you could always guarantee that they would both match then the revised design would be preferable.
For unexpectedly long autocomplete results the matching input box would have to be very long too which wouldn't look great. Trying to go to extra lengths to match both widths wouldn't be worth it anyway?
P.S. Apologies for reopening ticket. Not sure whether I should reopen or start a new ticket.
#10
@
13 years ago
The ability to use the autocomplete widget for post titles sounds like a separate enhancement. I'd suggest creating a new ticket.
#11
@
13 years ago
I'm not requesting an enhancement to support post titles as such. That was just an example to illustrate the point that the autocomplete results can potentially extend beyond the input box width (as per my screenshot).
To safeguard against this it may be better to use Helen's original CSS with the top rounded corners.
#13
@
13 years ago
I think the bottom two in https://core.trac.wordpress.org/attachment/ticket/20584/autocomplete-width.png look fine. Not great, but better than the top two.
The top two would look better if there was a pixel between the input and the autocomplete. I don't care either way. I think this is probably good enough for 3.4.
#14
@
13 years ago
- Keywords ui-feedback removed
20584.2.diff does two things:
- Lengthens the inputs in the Right Now network dashboard widget
- Does some JS magic so we can have a border around the whole autocomplete widget/list
Looks like this when an item is longer (shorter items still look the same as before):
#15
@
13 years ago
Actually, it does a third thing: removes some CSS color cruft from the main stylesheet and de-dupes the JS closures for open/close callbacks.
#17
follow-up:
↓ 18
@
13 years ago
Good here. Can .ui-autocomplete not be assigned margin-top: -1px in the CSS?
#18
in reply to:
↑ 17
@
13 years ago
Replying to nacin:
Can .ui-autocomplete not be assigned margin-top: -1px in the CSS?
No, it gets absolutely positioned and is wrong the first time it appears. Have a better solution, actually, and am looking at how it actually displays in RTL, so will re-patch soon.
Maybe in the process we could make it look slightly better overall?