Support from Acquia helps fund testing for Drupal Acquia logo

Comments

shaal created an issue. See original summary.

shaal’s picture

I 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 -
Search box in the correct width

Eli-T’s picture

@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.

bash247’s picture

I'm having the same issue where the placeholder text doesn't fit in the search field. Browser - Firefox 65.0

bash247’s picture

+++ b/core/profiles/demo_umami/themes/umami/css/components/blocks/search/search.css
@@ -90,8 +90,8 @@
+  .search-block-form .form-search {

What's the reason behind being more specific?

Eli-T’s picture

FileSize
586.38 KB

I've just updated to the latest FF and still can't recreate

Screenshot showing Firefox at version 65 but the issue still stubbornly refusing to manifest itself

bash247’s picture

Now 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

shaal’s picture

I'm running Ubuntu 18.10, Resolution 1920x1080,
I tested it on:

  • Chromium
  • Google Chrome
  • Firefox Nightly
  • Firefox

All of them had this issue.
(you can see the attached screenshot and the specific browser versions)

shaal’s picture

@eli-t I noticed this problem does not exist in 8.6.x, only in 8.7.x

@bash247 re #5: on /search page there are two separate class="form-search" so since the width is unique to each one of them, I thought it's better to specifiy.

Eli-T’s picture

@shaal interesting. I only tested with 8.7.x.

saesa’s picture

I think the problem is of the style that does not fit the screen correctly.

search form

I'm running Ubuntu 18.04.02 LTS, Resolution 1366x768. FIrefox 65.0.1.

Version: 8.7.x-dev » 8.8.x-dev

Drupal 8.7.0-alpha1 will be released the week of March 11, 2019, which means new developments and disruptive changes should now be targeted against the 8.8.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

kjay’s picture

Status: Needs review » Needs work
FileSize
27.79 KB

Reviewed 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.

Search placeholder text login issue.

shaal’s picture

Status: Needs work » Needs review
FileSize
1.06 KB

(file upload failed)

shaal’s picture

I removed an extra flex legacy rule that was not needed anymore and caused the issue on #13

shaal’s picture

Preview of patch #15 on IE11:

Wide screen:
IE11 wide preview of patch #15

Narrow screen (just before search becomes a magnifying glass icon):
IE11 narrow preview of patch #15

kjay’s picture

Status: Needs review » Reviewed & tested by the community

Looking 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 :)

mradcliffe’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs reroll

The 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.

shaal’s picture

Status: Needs work » Needs review
FileSize
538 bytes
875 bytes

Rerolled patch.
Increased placeholder width to 18em in order to support Spanish.

gaddamsr’s picture

Confirming that patch works . The placeholder in english is fully visible in the search bar

mradcliffe’s picture

Issue tags: -Needs reroll
FileSize
22.66 KB
20.59 KB

I checked it in Spanish with @gaddamsr as well.

Removed Needs re-roll tag as we have a reroll. Thank you, @shaal!

mradcliffe’s picture

Status: Needs review » Reviewed & tested by the community

Back 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.

Gábor Hojtsy’s picture

I 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.

Gábor Hojtsy’s picture

Version: 8.8.x-dev » 8.7.x-dev
Status: Reviewed & tested by the community » Fixed

Thanks all, committed!

  • Gábor Hojtsy committed 7bc4051 on 8.8.x
    Issue #3030936 by shaal, mradcliffe, Eli-T, kjay, saesa, bash247,...

  • Gábor Hojtsy committed bba648d on 8.7.x
    Issue #3030936 by shaal, mradcliffe, Eli-T, kjay, saesa, bash247,...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.