Closed (fixed)
Project:
Drupal core
Version:
8.5.x-dev
Component:
Bartik theme
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
23 Feb 2016 at 20:03 UTC
Updated:
22 Oct 2017 at 10:20 UTC
Jump to comment: Most recent, Most recent file



Comments
Comment #2
ironkiat commentedComment #3
ironkiat commentedComment #4
shiva srikanth t commentedI have fixed this issue in my local, I am attaching patch file.
Comment #5
ironkiat commentedHey tshivasrikanth, thanks for picking this up! I've tested it on a contact form page where I created an extra field for dropdown, here's how it looks:
Notice the normal text fields for name and email address has that inner shadow?
I would suggest to just remove:
while keeping the other input elements to still have border and color.
The result should be something like this:
Thanks!
Comment #6
shiva srikanth t commentedUpdated patch for the issue.
Comment #7
kostyashupenkoCheck my screen below about selectboxes in FF for Bartik theme. This is how it looks for now on 8.1.x. Not sure about how it should looks?
Selectboxes in my ubuntu FF v44.0.2

Was noticed about bad inner borders for some fields. This patch will fix this issue

After my changes for #edit-name and #edit-mail fields related to inner borders
Comment #8
ironkiat commentedHey @kostyashupenko, thanks for this, when you say ubuntu FF for the select field, is it before or after applying the patch #4?
If it's after applying patch #4, then I would think it's correct, would you be able to upload one before applying the patch to see how it looks like on Ubuntu FF by default?
On the patch you submitted, I do not think we should style the fields in the contact form specifically. As mention in my comment on comment #5, it might be just as simple as removing the .form-select only.
Comment #9
shiva srikanth t commented@ironkiat
I have uploaded the correct path in #6 which is working fine.
@kostyashupenko
if you are uploading a new patch, your patch number should be with respect to your comment number. may i know the reason why you deleted drupal-select-box-un-styled-ff-2674292-6.patch file from the files list.
Comment #10
chx commentedThere's a misunderstanding here: kostyashupenko did not delete your patch just hidden it -- it's customary to only show the last patch under the issue summary to make it easier to review. If you click the relevant fieldset in #7 you will see that your patch is still there, together with its test result. They couldn't delete anyways and if you check the "git command" box below you see you will be credited when this patch gets in.
Comment #11
chx commentedOn the other hand, @kostyashupenko please post a review next time and respect the issue being assigned to tshivasrikanth . Yes sometimes taking over an issue is necessary -- either the assigned just wandered off and there's nothing happening any more or the patch is so broken that a review would be longer than fixing it. Neither of these are the case here. Please let tshivasrikanth finish this issue.
Comment #12
ironkiat commentedHey @tshivasrikanth, thanks! The patch in #6 works, I've tested it FF on Mac, perhaps anyone who has a Ubuntu or Windows can help test the patch as well on FF?
Comment #14
shiva srikanth t commentedUpdated patch for the branch 8.2.x-dev
Comment #15
shiva srikanth t commentedComment #16
ironkiat commentedLooking good!
Comment #17
emma.mariaComment #18
star-szrI don't see the harm in including this in 8.1.x so putting back there at least tentatively. For what it's worth the patch in #14 at least applies to 8.1.x.
Comment #20
droplet commentedChrome is a Winner in Drupal!! haha. Reminded me the awful looks in IE.
still same color, right ?
Comment #21
emma.mariaI'm setting this as a 'Feature Request' as there are currently intentional styles set in Bartik for form elements, nothing is actually "unstyled" they are actually overridden.
I was not part of that decision making, but as maintainer I'm going to go poke into this reasoning further.
Comment #22
emma.mariaThe form elements are designed to be grey in Bartik so the grey select styling needs to stay.
However(!)....The exact same scenario came up in the Seven theme. The only browser that used the CSS only select styling correctly were Webkit ones, so we dropped styling support for every other browser and made the styles Webkit specific.
So the plan forward is that we make the
select.form-selectstyles Webkit only styling which will allow Firefox to look less dreadful.Here is the Seven issue for reference... #2207391: Style select elements in Webkit only.
Comment #23
emma.mariaComment #24
tstoecklerComment #25
alamowoHey I just took patch #14 and added the same appraoch taken in #2207391: Style select elements in Webkit only.
It's making the webkit a bit more look like we want it and keeps other browsers untouched.
@emma.maria ist that what we were looking for?
Comment #26
emma.mariaHi @alamowo. I haven't looked at the patch test but we want to set the styles we currently have for select elements in Bartik right now in core, to be set for only WebKit browsers.
Comment #27
emma.mariaComment #28
emma.mariaThanks @alamowo for the patch!
Bartik now assigns select styling only to Webkit browsers




and
Firefox and other non-Webkit browsers now use the default browser select styling...
However I noticed one small thing that you have missed....
Can you add the
color: #3b3b3b;style also to the Webkit select element please? Thanks!Comment #29
shiva srikanth t commentedAdded the
color: #3b3b3b;style to the Webkit select element.Comment #30
shiva srikanth t commentedComment #31
emma.mariaComment #32
nesta_ commented@sskt Due to an error "500" in version "8.2.x" I can not review it. As I can do.
---> composer install
i'm reviewing :)
Comment #33
nesta_ commentedAfter applying the patch, issue #29. In the select Chrome have a pixel height less than the inputs.

But in Chrome (linux) works fine

In Firefox (osx) and Firefox (linux) looks small.


For Bartik Theme is the same.
change status -> Needs Work
Comment #34
nesta_ commentedComment #35
nesta_ commentedAdd patch to fix Chrome osx Select Box.
Comment #36
nesta_ commented@emma.maria please i would like to talk with you for this issue.
Comment #37
nesta_ commentedComment #38
nesta_ commentedComment #40
joelpittetThis could really use Emma's eyes
Why 27px specifically? It's not used anywhere else in Bartik
Not sure why this 1px is needed, probably should have a comment explanation.
Comment #41
mukeshmukesh12 commentedplease review my patch is it working fine. I 've tested and also attach screen shot
Comment #42
droplet commentedComment #43
manjit.singh@Mukesh: Changes that you have done in last patch are working as per the expectations. Please check the screenshots that i have captured after applying the patch.
But one issue that i have noticed that the height of selectboxes in chrome (Linux). And one other issue is in FF, The alignment of textboxes and selectboxes is not correct. Please check screenshots.
Comment #44
kostyashupenkochecking this thing
Comment #45
kostyashupenkoComment #46
kostyashupenkocan't reproduce these screens
Comment #48
tim.clifford commentedBecause Webkit & Mozilla Firefox rendering engines implement line height differently - we get different results as seen in the screenshots.
We have to explicitly set the line-height and use padding to make them behave the same way.
#57 patch with DCS fix and Screenshots.
Comment #49
tim.clifford commentedComment #50
tim.clifford commentedRe-adding patch #50
Comment #51
tim.clifford commentedComment #52
tim.clifford commentedComment #53
tim.clifford commentedComment #54
kiwimind commentedThis should be on line above.
Comment #55
kiwimind commentedOh, sorry, that's terrible feedback. There's a curly brace that should be at the end of the line preceding it.
Thanks for the patch.
Comment #56
kiwimind commentedSorry, think there should be a space after the colon here too.
Comment #57
tim.clifford commentedDCS fixes added.
Comment #58
starshapedI tested this in Firefox 53 and the changes look good to me. Screenshot attached.
Comment #59
larowlan{ should be on same line
Comment #60
star-szrLooks like #59 has been addressed in the patch in #57.
@tim.clifford thanks for the updated patch! Providing an interdiff is very useful to reviewers.
Comment #61
wim leersThis is WebKit-specific. Let's also support other browsers.
A quick web search led me to https://www.w3.org/blog/CSS/2012/06/14/unprefix-webkit-device-pixel-ratio/.
Oh… apparently we want to do this in a WebKit-specific way! Fine, but then we need to document it as such.
Comment #62
phenaproximaOkay, so...I'm trying to help @starshaped get this patch done, but something is weirding me out.
As far as I can tell, the line-height fix in #50 doesn't seem to have to anything to do with the original issue, which is fixed by the patch in #48. I'm not saying it's something that shouldn't be fixed, just that it seems to be out-of-scope.
It seems to me that #48 is good to go as-is, and we should open a follow-up issue to fix the line-height thing. So I'm marking this as needing review for #48, and needing a follow-up.
Comment #63
starshapedAs per phenaproxima's comment in #62, I re-rolled this without the line height changes. Screenshot attached from Firefox 53.
Comment #64
aaronchristian commentedHey all, had a look at the comments and latest patch.
Just confirming that the patch fixes the issue in firefox with the spacing. Did regression testing and couldn't find any problems with the patch (small changes as is).
Before:
After:
In Scope:
The line-height fix should be included as it sets the standard across the different rendering engines.
Out of Initial Scope:
More information can be found here; https://developer.mozilla.org/en-US/docs/Web/CSS/@media/-webkit-device-p...
Comment #65
phenaproximaOkay, then let us re-roll the patch with the line-height fix. Thanks for the review, @AaronChristian!
Comment #66
starshapedRe-rolled as per AaronChristian's comment. Attached are 3 screenshots from Firefox 53, one of the fixed select in Bartik, the other two of the input text field and textarea with the fixed line-height in Seven.
Comment #67
aaronchristian commentedLooks great @starshaped!
Thanks for that small addition & all the screenshots.
Unless opposed I'd like to mark this as RTBC.
Comment #68
phenaproximaIf it's been reviewed and tested by a community member who's not the patch author, and it looks good, it's RTBC by definition :) Thanks, @AaronChristian and @starshaped!
Comment #69
kiwimind commentedYep, looks good. Thanks starshaped and tim.clifford.
Great work with the screenshots and timely responses.
Seconding the RTBC.
Comment #70
yoroy commentedThanks all, this is a nice improvement. I double checked on simplytest and yes, this does make the select list look a lot better in Firefox.
I've updated the commit credits, this is ready to commit.
Comment #71
star-szrI don't follow why this needs to update Seven's CSS. I don't understand the argument made in #64. Other than that one change to Seven, this patch looks ready to go. So I would tend to agree with @phenaproxima's proposed direction in #62, let's get the straightforward change in and discuss the other issue separately.
Thanks everyone for the efforts here!
Comment #72
yoroy commentedComment #74
starshapedFinally went ahead and removed the line-height update as suggested in #71. Now this patch should be ready to go! :)
Comment #75
joelpittetThat looks RTBC, not touching Seven, only bartik.
Comment #76
lauriiiCommitted 24959f6 and pushed to 8.5.x. Thanks!