Closed Bug 1366143 Opened 7 years ago Closed 6 years ago

Fix alignment of select boxes

Categories

(bugzilla.mozilla.org Graveyard :: Sandstone/Mozilla Skin, defect, P1)

Production
defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: dylan, Assigned: kohei)

References

Details

Attachments

(7 files, 4 obsolete files)

Smaug reported that the Mozilla Skin has a glitch in the height of select and input items which is particularly notable when setting review flags. This is partly due to padding added to input items (which I think is unattractive anyway), and different font sizes.
Attached patch 1366143_1.patch (obsolete) — Splinter Review
Pushing this change up to dev for a review across browsers. I think it looks better in all browsers on OSX and Windows, but not better in Linux. I think possibly we might want to use a CSS reset but that is probably more work. :-/
Attachment #8869300 - Flags: review?(glob)
After a lot of looking, I think it's better on linux. It's just not perfect there.
Comment on attachment 8869300 [details] [diff] [review]
1366143_1.patch

Review of attachment 8869300 [details] [diff] [review]:
-----------------------------------------------------------------

if you're asking if i think it looks better, my answer is no.
i think because of the styling (box-shadow, border-radius, etc) there is a need for extra padding, and it looks way too tight without it.

2px padding is the smallest value where it feels right to me.
will attach comparison screenshots.
Attached image padding-current.png
Attached image padding-2.png (obsolete) —
Attached image padding-0.png
Attached image padding-2.png
oops, padding-2 didn't have box-shadows.
Attachment #8871150 - Attachment is obsolete: true
Attached image details_page.png
The padding is problematic when trying to make select and input boxes the same height. The real issue is the different font sizes.
Summary: Fix height of select boxes and text fields → Fix alignment of select boxes
Attached patch 1366143_8.patch (obsolete) — Splinter Review
The focus of this patch is alignment, so I have not shrunk the size of inputs. I have enlarged the padding on select elements and changed their box-sizing and font-size to be consistent (the existing CSS inconsistently styles select and select[multiple]. The biggest change is 
the removal of vertical-align: top
Attachment #8869300 - Attachment is obsolete: true
Attachment #8869300 - Flags: review?(glob)
Attachment #8871421 - Flags: review?(glob)
Attached file PR (obsolete) —
Attachment #8871421 - Attachment is obsolete: true
Attachment #8871421 - Flags: review?(glob)
So as mentioned in the PR, I tried the CSS appearance:none solution. Tested with various browsers including Firefox, Firefox ESR, Chrome, Safari, IE, Edge on Windows, macOS, Ubuntu and it all looks good. Attaching a screenshot on Firefox. PR coming shortly.
Assignee: dylan → kohei.yoshino
Status: NEW → ASSIGNED
Attached file PR2
Attachment #8885953 - Attachment description: screenshot w/ appearance:none technique → screenshot w/ appearance:none technique, advanced search page
Attachment #8885791 - Attachment is obsolete: true
The long term solution I believe is using custom elements (Bug 889230) to provide a better, consistent UX. For example, the product and component dropdown list should have a filtering option like GitHub issue's reviewer/assignee selector. Firefox will be implementing this natively (Bug 1309935) but other browsers don't have it for now.
Blocks: 1380277
Attachment #8885956 - Flags: review+
This is a clear improvement in most cases.
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Blocks: 1386238
This caused breakage on enter_bug.cgi (and some others)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
I'm bulk-closing the remaining Sandstone skin bugs. Sandstone is no longer Mozilla's default style, and I'll be creating a new style guide for Bugzilla soon in Bug 1377977.
Status: REOPENED → RESOLVED
Closed: 7 years ago6 years ago
Resolution: --- → WONTFIX
Product: bugzilla.mozilla.org → bugzilla.mozilla.org Graveyard
No longer blocks: 1380277
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: