Closed (fixed)
Project:
Drupal core
Version:
8.7.x-dev
Component:
Umami demo
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
6 Feb 2019 at 06:13 UTC
Updated:
9 Apr 2019 at 13:19 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
shaalI created a patch that increases the search box's width from 14em to 15em.

The placeholder text is not blocked anymore.
This screenshot shows how it look after this patch is applied -
Comment #3
eli-t@shaal what browser is this on? Just tested on Chrome 71.0.3578.98 and FireFox 63.0.3 on MacOS 10.13.6 and the placeholder text fits comfortably without the patch.
Comment #4
bash247 commentedI'm having the same issue where the placeholder text doesn't fit in the search field. Browser - Firefox 65.0
Comment #5
bash247 commentedWhat's the reason behind being more specific?
Comment #6
eli-tI've just updated to the latest FF and still can't recreate
Comment #7
bash247 commentedNow that's a strange one.
I'm getting the same issue on Chrome too (72.0.3626.81). Screen res is - 2560x1440. OS - Ubuntu 16.04
Comment #8
shaalI'm running Ubuntu 18.10, Resolution 1920x1080,
I tested it on:
All of them had this issue.
(you can see the attached screenshot and the specific browser versions)
Comment #9
shaal@eli-t I noticed this problem does not exist in 8.6.x, only in 8.7.x
@bash247 re #5: on
/searchpage there are two separateclass="form-search"so since the width is unique to each one of them, I thought it's better to specifiy.Comment #10
eli-t@shaal interesting. I only tested with 8.7.x.
Comment #11
saesa commentedI think the problem is of the style that does not fit the screen correctly.
I'm running Ubuntu 18.04.02 LTS, Resolution 1366x768. FIrefox 65.0.1.
Comment #13
kjay commentedReviewed the patch on #2 and can confirm that the width of the field does increase as intended but this causes a responsive layout error with the user menu right at the breakpoint where the field first appears - see screenshot.
I am also unable to replicate the original issue, but with this patch only affecting this one field, I don't think this has any knock-on effects to be concerned about once the responsive issue is resolved.
As per @bash247's in #5, I'm not sure for the additional specificity but this patch doesn't seem to affect the search results page field which would be the likely issue of this being more specific.
Comment #14
shaal(file upload failed)
Comment #15
shaalI removed an extra flex legacy rule that was not needed anymore and caused the issue on #13
Comment #16
shaalPreview of patch #15 on IE11:
Wide screen:

Narrow screen (just before search becomes a magnifying glass icon):

Comment #17
kjay commentedLooking good. I tested this in Safari and Chrome and this adds the extra horizontal width to the field, ensures the placeholder text is visible and has resolved the issue I raised in #13 where the user menu is pushed beneath the field at the breakpoint size.
Also tested logged in to ensure the additional menu items do not cause an issue. Looks good there as well.
Marking RTBC :)
Comment #18
mradcliffeThe patch in comment #15 no longer applies on 8.8.x so I'm moving this back to Needs Work.
This also applies to Spanish. so we should check that the search box is long enough in Spanish. I think it is already.
Comment #19
shaalRerolled patch.
Increased placeholder width to 18em in order to support Spanish.
Comment #20
gaddamsr commentedConfirming that patch works . The placeholder in english is fully visible in the search bar
Comment #21
mradcliffeI checked it in Spanish with @gaddamsr as well.
Removed Needs re-roll tag as we have a reroll. Thank you, @shaal!
Comment #22
mradcliffeBack to RTBC based on @kjay's review in #17 and reviewing @shaal's quick re-roll and @gaddamsr's review.
Edit: gaddasmsr did a re-roll as well at MidCamp 2019, but was not able to post it before shaal. So I asked him to review the re-rolled patch based on his own work.
Comment #23
gábor hojtsyI don't think this can ever be fully attained, but better default looks in most browsers tested is still better than known issues we could easily fix.
Assigning credits.
Comment #24
gábor hojtsyThanks all, committed!