We are adding a grouped search component to Seven in #2160545: Create search/filter component and it seems like it would suit Bartik's search form as well.

CommentFileSizeAuthor
#43 before-search.png24.77 KBneerajpandey
#43 before-mobile-search.png16.93 KBneerajpandey
#43 before-mobile-form.png21.17 KBneerajpandey
#43 before-form.png33.28 KBneerajpandey
#43 after-search.png23.66 KBneerajpandey
#43 after-mobile-search.png15.78 KBneerajpandey
#43 after-mobile-form.png21.34 KBneerajpandey
#43 after-form.png32.98 KBneerajpandey
#40 interdiff-2207717-35-40.txt522 bytesckrina
#40 add_search_input-2207717-40.patch2.03 KBckrina
#38 search-input2207717.png32.73 KBckrina
#35 interdiff.txt560 byteskostyashupenko
#35 add_a_search_input-2207717-35.patch1.87 KBkostyashupenko
#35 search-form-fix.png23.27 KBkostyashupenko
#32 ff-after.png102.57 KBckrina
#31 mobile_rtl.png5.9 KBkostyashupenko
#31 desktop_rtl.png5.5 KBkostyashupenko
#31 desktop_ltr.png5.49 KBkostyashupenko
#31 mobile_ltr.png4.62 KBkostyashupenko
#31 interdiff.txt1.43 KBkostyashupenko
#31 add_a_search_input-2207717-31.patch1.82 KBkostyashupenko
#29 search-page.png113.83 KBemma.maria
#29 header-search.png69.73 KBemma.maria
#26 interdiff.txt794 byteskostyashupenko
#26 add_a_search_input-2207717-26.patch1.39 KBkostyashupenko
#26 before#26.png5.27 KBkostyashupenko
#26 after#26.png5.26 KBkostyashupenko
#24 before-after-480px.png93.23 KBckrina
#22 add_a_search_input-2207717-22.patch1.19 KBsyamnath
#17 searchuisuggestion.png140.81 KBsyamnath
#17 searchuisuggestion.png140.81 KBsyamnath
#11 Screen Shot 2015-01-11 at 19.23.57.png43.55 KBemma.maria
#6 bartik-search-input-2207717-6.patch2.59 KBamitgoyal
#2 Screen Shot 2014-03-02 at 11.57.42.jpg115.56 KBlewisnyman
#2 bartik-search-input-2207717.patch2.37 KBlewisnyman
Screen Shot 2014-02-28 at 15.50.38.jpg7.52 KBlewisnyman

Comments

lewisnyman’s picture

Issue summary: View changes
lewisnyman’s picture

Status: Active » Needs review
StatusFileSize
new2.37 KB
new115.56 KB

I had a play around with this just to see how it would look. I'm not in love with it to be honest but it would be nice to get some other opinions. I think it would look less out of place in the site header.

lewisnyman’s picture

Issue tags: +frontend
emma.maria’s picture

How did this go unnoticed all this time? I think this looks great and not out of place with Bartik's design.

Tagging to try and get further opinions and more testing of this.

emma.maria’s picture

Status: Needs review » Needs work
Issue tags: -Needs manual testing +Needs reroll

This patch needs a reroll, leaving the +Needs usability review tag to get some design eyes on at least the screenshot from @LewisNyman.

amitgoyal’s picture

Status: Needs work » Needs review
StatusFileSize
new2.59 KB

Re-roll of #2.

emma.maria’s picture

Issue tags: -Needs reroll
Bojhan’s picture

Issue tags: -Needs usability review

I am not sure about the roundness do we do that on any other forms? Combing sounds fine to me

lewisnyman’s picture

I am not sure about the roundness do we do that on any other forms?

Now, I think this is taking influence from the default browser styling and common styling of frontend frameworks like Bootstrap input groups. What do you think?

Bojhan’s picture

I am actually not so sure, because that often is in alignment with a very special position on the page. In our case, its simply in a block and can often be placed close to other forms.

emma.maria’s picture

Status: Needs review » Needs work
StatusFileSize
new43.55 KB

I tried to show the search block next to the login block to see if the different form styling was an issue but turns out the patch re-roll did not go to plan. See screenshot...

emma.maria’s picture

Version: 8.0.x-dev » 8.1.x-dev
emma.maria’s picture

Status: Needs work » Postponed

Pushing this to 8.1.x as we are all far too busy fixing things to do the fun design tasks right now :)

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.0-beta1 was released on March 2, 2016, which means new developments and disruptive changes should now be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

emma.maria’s picture

Status: Postponed » Needs work

Yay we can open this again

emma.maria’s picture

Issue tags: +Usability
syamnath’s picture

Issue summary: View changes
StatusFileSize
new140.81 KB
new140.81 KB

Hi I just played around with the search button. Here is my suggestion. It will be better if we go with a full width searchbox. I t will also be very handy when considering responsiveness.
In Large displays
Large displays

Kindly advice

emma.maria’s picture

Issue tags: +Needs design

Hi @syamnath_zyxware. Thanks for the mockup! I am going to ping @yoroy, who is one of the Usability maintainers for Drupal 8 core to get some feedback for you :-)

@yoroy Please can you give any advice or feedback for this issue and the idea in #17?

Thanks!

yoroy’s picture

Sorry for the delay. Thanks for working on this @syamnath_zyxware. I think his looks great! I agree full width would be useful to do as well. Go for it :)

emma.maria’s picture

Issue tags: -Needs design

Yay! :-)

syamnath’s picture

Assigned: Unassigned » syamnath
syamnath’s picture

StatusFileSize
new1.19 KB

Hi I have created a patch making the search the same design as above. It has been did in the rtl also. needs review

syamnath’s picture

Assigned: syamnath » Unassigned
Status: Needs work » Needs review
ckrina’s picture

Status: Needs review » Needs work
StatusFileSize
new93.23 KB

It looks great in all sizes, but I've found a really small thing: on small devices the text inside the input is partially hidden in the bottom (the descenders only). Since the text size is increased to 16px for small devices (form.css, line 83), the padding padding: 4px 0 4px 0; plus the height: 16px; are not enough. It's just a matter of 1px.

Before and after screenshot for search

kostyashupenko’s picture

Assigned: Unassigned » kostyashupenko
kostyashupenko’s picture

Assigned: kostyashupenko » Unassigned
Status: Needs work » Needs review
StatusFileSize
new5.26 KB
new5.27 KB
new1.39 KB
new794 bytes

@ckrina, i've found this small thing too via FF and fixed it. Screens below

Before #26:
before%2326.png

After #26:
after%2326.png

yoroy’s picture

Assigned: Unassigned » emma.maria
Status: Needs review » Reviewed & tested by the community

Thanks all, this looks good to go!

emma.maria’s picture

Status: Reviewed & tested by the community » Needs review

I will take a look at this today. I've also noticed there are no screenshots of the search form on the search page either so will check it out.

emma.maria’s picture

Issue summary: View changes
Status: Needs review » Needs work
StatusFileSize
new69.73 KB
new113.83 KB

The search component is definitely used in the main content region on a search result page and the block can also be placed in *any* region. Therefore we cannot assume that it should span full width of the container. See below.
 

 
Also placing the block in other regions produces a broken search component, see below.
 

We put a lot of work into the search component to make it reusable wherever it is placed plus only using one set of component CSS. I don't want that progress to go too far backwards.

kostyashupenko’s picture

Assigned: emma.maria » kostyashupenko

I will check

kostyashupenko’s picture

Assigned: kostyashupenko » Unassigned
Status: Needs work » Needs review
StatusFileSize
new1.82 KB
new1.43 KB
new4.62 KB
new5.49 KB
new5.5 KB
new5.9 KB

@emma.maria, with the patch #26 we can't keep the same styles (and correct) everywhere. That's why i've restyled a lot of things in my patch. Please check screens and test it. For now we have static sizes for loupe-icon for all resolutions. Looks ok i guess. Waiting for your feedback
mobile_ltr.png
desktop_ltr.png
mobile_rtl.png
desktop_rtl.png

ckrina’s picture

StatusFileSize
new102.57 KB

Hi @kostyashupenko, I'm afraid I've found some issues with that last patch. On some places the class .form-item adds margins to the input group element so the absolute position in the submit button causes it to be above the text input.

screnshot for the search input

yoroy’s picture

Status: Needs review » Needs work
kostyashupenko’s picture

Assigned: Unassigned » kostyashupenko

will check

kostyashupenko’s picture

Assigned: kostyashupenko » Unassigned
Status: Needs work » Needs review
StatusFileSize
new23.27 KB
new1.87 KB
new560 bytes

@ckrina, issue fixed in this patch
search-form-fix.png

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.0-beta1 was released on August 3, 2016, which means new developments and disruptive changes should now be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

ashish_nirmohi’s picture

Version: 8.3.x-dev » 8.2.x-dev

I have changed the version to 8.2.x-dev from 8.3.x -dev , as patches are being submitted on 8.2.x-dev.

ckrina’s picture

Status: Needs review » Needs work
StatusFileSize
new32.73 KB

I've just seen one issue on smaller devices (smaller than 600px):
Search input

It's the line 310 in form.css that adds this 10px as top margin:

@media all and (max-width: 600px) {
  .form-actions .button {
    float: none;
    margin: 10px 0 0;
  }
}
ckrina’s picture

Issue tags: +Dublin2016
ckrina’s picture

StatusFileSize
new2.03 KB
new522 bytes

Just checked it and it was the bottom margin from the general inputs in form.css who was creating this misalignment. I overrided it just for this component in small devices, but maybe it's not the best approach.

@media all and (max-width: 600px) {
  .search-form .form-search {
    margin-bottom: 0;
  }
}
ckrina’s picture

Status: Needs work » Needs review
ckrina’s picture

Issue tags: +Novice
neerajpandey’s picture

StatusFileSize
new32.98 KB
new21.34 KB
new15.78 KB
new23.66 KB
new33.28 KB
new21.17 KB
new16.93 KB
new24.77 KB

Tested. Everything work fine for patch #40, but the alignment of the search-form-submit-button in mobile devices is not proper.
Screenshots has been attached for all and have pointed out the issue on the screenshot using an arrow. Rest is fine.

Issue on : after-mobile-form.png

neerajpandey’s picture

Status: Needs review » Needs work
MaskyS’s picture

Status: Needs work » Closed (outdated)

I think we should close this issue since this has already been implemented into Bartik both in 8.2.x dev and 8.3.x.