Closed (fixed)
Project:
Drupal core
Version:
8.2.x-dev
Component:
Seven theme
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Dec 2014 at 07:11 UTC
Updated:
17 Jul 2017 at 15:51 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #1
Vidushi Mehta commentedApplying patch for the default country select box issue.
Comment #2
Vidushi Mehta commentedComment #3
Sumit kumar commentedComment #4
Vidushi Mehta commentedComment #5
Sumit kumar commentedApplying patch for the default country select box issue.
Comment #6
Sumit kumar commentedComment #7
manjit.singhComment #8
skippednote commentedI tested the patches and they seem to be causing some unintended changes. The #5 patch is effecting all the

selectelements, also its targeting the select element instead of using a class.form-select. On the node creation page the select element for Text Format is getting stretched to 100% width which isn't looking neat or matching the styleguide.I noticed inconsistency of the select element on the Installation page, this is stylistic change which I'd leave for others to discussion on.

I've added a patch targeting the overflow of select box on mobile devices.
Comment #9
Sumit kumar commentedComment #10
manjit.singh@skippednote Have you test #1 patch, I think this patch is just for Installation screen and not effecting other select boxes.
Comment #11
deepakkumar14 commentedI have tested the patch #1 on my local machine.
Its working fine for configuration page and not effect any othe select list.
Comment #12
manjit.singh@deepak It would be good if you can attach some screenshots from mobile as well. Because issue was on mobile.
Comment #13
deepakkumar14 commentedI have tested also on mobile and its working fine.
Comment #14
vipulaSD commentedRe-rolled patch for commit 7f1b02ecd93c08e82a4020b8cec500fde718594e.
Comment #15
meeli commentedThis patch is looking food but I wanted to point out that I think the select fields should look consistent - the timezone field not doesn't match the country field and I think they should both be
so that they both look and act the same across different breakpoints.
Added a screenshot of the two fields at different widths.
Comment #16
studiozut commentedComment #17
studiozut commentedI'm about to look at this issue at DrupalCon LA
Comment #18
manjit.singhComment #19
studiozut commentedI added a width and max-width 100% (per @meeli's suggestion) to the existing media query in form.css for "narrow devices". This should extend the select box fields the width of the device for handheld.
Comment #20
studiozut commentedAdding a screenshot to comment #19
Comment #21
studiozut commentedComment #22
lewisnymanCan we not use ID's to select individual elements? We should try and avoid overriding elements in one situation. Is it possible to apply this CSS to all select boxes? I think that would be ok behaviour.
Comment #23
manjit.singhadding
.form-selectinstead of#edit-site-default-country, #edit-date-default-timezoneBut @lewis, May be it causes a problem for other forms also.. we have to check that manually :)
Comment #24
manjit.singhComment #25
lamaxi commentedI made 4 screens for two custom width (360 and 570 pixels)
Comment #26
lamaxi commentedComment #27
lamaxi commentedComment #28
volodymyr.oliinyk commentedComment #29
volodymyr.oliinyk commentedComment #30
lewisnymanI tested this patch on a few other pages and it doesn't have any bad effects, it simply makes the select element full width. This is overidden correctly on pages that float or set widths on their form items as the select element only fills the maximum width of the .form-item wrapper div.
One question:
I'm not sure why we are removing this comment?
Comment #31
simply021 commentedComment #32
simply021 commentedReverting comment for
and applying width value
.
Comment #33
simply021 commentedReverting comment for
and applying width value
.
Comment #34
simply021 commentedComment #35
manjit.singhI have checked it on emulators and working fine for me. Please check the screenshot.
After applying patch:
Comment #37
ejb503 commentedHi I've applied the patch from 32 on my local and rerun all tests and they are passing without problems,
Comment #38
catchThe patch in #32 has 9 fails, so should not be RTBC. Looks like unrelated changes that could be removed.
Comment #39
Sumit kumar commentedComment #40
emma.mariaThe patch in #39 is a different solution to the work in the patch at #32 which was RTBC.
The patch in #32 contained unrelated changes for this issue, there should only be changes to the form.css file.
Please can someone take the patch in #32 remove the unrelated changes and upload a new patch please?
Thanks :)
Comment #41
alvimurtaza commentedAdding patch with the fix for mobile viewport.
Comment #42
manjit.singhComment #43
jeffrey.vargas commentedI'm working on this in the Mentor Sprints at DrupalCon NOLA 2016.
Confirmed against Drupal 8.2.x-dev.
Comment #44
vsawant commentedI am working on this at Core sprint at DrupalCon New Orleans
Comment #45
jeffrey.vargas commentedConfirmed that this addresses the issues raised by emma.maria and only has changes to the form.css file.
Comment #46
vsawant commentedI have reviewed #41. It applies cleanly to brach 8.2.x I can verify that it fixes the issue with width of select boxes in mobile view.
And also additional unrelated changes in #32 have been removed. I believe this is RTBC
Comment #47
jeffrey.vargas commentedRTBC +1. Reviewed and tested locally and ran dreditor to confirm that the fix works and conforms to changes only in form.css file.
Comment #48
star-szrComment #49
star-szrI might be missing something but I'm not sure why are we changing the first selector here and why the second selector is
.form-selectinstead ofselect. I don't see it being discussed here so I am asking :)Comment #50
manjit.singh@Cottser Don't know the answer but we can take anything
.form-selectorselectbecause both are pointing to the same element. If you want, I can change the selector.I have captured a screenshot for reference to others.
Comment #51
maninders commentedComment #52
maninders commentedThis is working fine after applying patch #41.
Screenshot is attached for your reference.
Comment #53
maninders commentedComment #54
maninders commentedComment #55
maninders commentedComment #56
star-szrI think in that case we should use select as the (base of the) selector then.
Thanks for the manual testing @Maninders but we were just discussing whether it's the right solution a few comments ago.
Comment #57
manjit.singhI think we have to keep
selectrather than.form-selectComment #58
maninders commentedComment #59
alvimurtaza commentedUpdating the patch with adding style using html selector instead of the class.
Comment #60
Trupti Bhosale commentedVerified the patch 'select-box-issue-in-configuration-page-on-mobile-2392729-59.patch' and the size of 'Default time zone' is now 100%.
Attaching snapshots for reference.
Comment #61
Trupti Bhosale commentedComment #62
manjit.singhLooks good to me, Thanks.
Comment #63
xjmA UI bugfix like this should be eligible during the 8.2.x beta. After that it can still go into 8.3.x.
Comment #64
star-szrAssigning for review.
Comment #67
star-szrUnrelated test failure.
Comment #70
star-szrCommitted and pushed b184ba6 to 8.3.x and 4ab99e3 to 8.2.x. Thanks!
Comment #72
Vidushi Mehta commentedComment #73
lewisnyman