Project

General

Profile

Actions

Defect #32206

closed

Options in a drop-down overlap the down arrow when Alternate theme is used

Added by Go MAEDA over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
UI
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

It is caused by r18056 (#31147), so only the trunk is affected.

It can be fixed with the following patch. The appropriate padding value defined in the default theme is used by removing the padding definition from Alternate theme.

diff --git a/public/themes/alternate/stylesheets/application.css b/public/themes/alternate/stylesheets/application.css
index 4ad6b7923..ccc889410 100644
--- a/public/themes/alternate/stylesheets/application.css
+++ b/public/themes/alternate/stylesheets/application.css
@@ -70,8 +70,7 @@ input[type="button"], input[type="submit"], input[type="reset"] { background-col
 input[type="button"]:hover, input[type="submit"]:hover, input[type="reset"]:hover { background-color: #ccccbb; }

 /* Fields */
-input[type="text"], input[type="password"], textarea, select { padding: 2px; border: 1px solid #d7d7d7; }
-input[type="text"], input[type="password"] { padding: 3px; }
+input[type="text"], input[type="password"], textarea, select { border: 1px solid #d7d7d7; }
 input[type="text"]:focus, input[type="password"]:focus, textarea:focus, select:focus { border: 1px solid #888866; }
 option { border-bottom: 1px dotted #d7d7d7; }


Files

overlaps-on-down-arrow@2x.png (27.9 KB) overlaps-on-down-arrow@2x.png Go MAEDA, 2019-10-06 07:11

Related issues

Related to Redmine - Patch #31147: Add custom styles for all fieldsClosedGo MAEDA

Actions
Actions #1

Updated by Go MAEDA over 4 years ago

  • Related to Patch #31147: Add custom styles for all fields added
Actions #2

Updated by Go MAEDA over 4 years ago

I don't think it is necessary to keep the style "border: 1px solid #d7d7d7;" too. A very similar style (border:1px solid #ccc;) is already defined in public/stylesheets/application.css (see source:trunk/public/stylesheets/application.css@18587#L467

diff --git a/public/themes/alternate/stylesheets/application.css b/public/themes/alternate/stylesheets/application.css
index 4ad6b7923..df2c6c5db 100644
--- a/public/themes/alternate/stylesheets/application.css
+++ b/public/themes/alternate/stylesheets/application.css
@@ -70,8 +70,6 @@ input[type="button"], input[type="submit"], input[type="reset"] { background-col
 input[type="button"]:hover, input[type="submit"]:hover, input[type="reset"]:hover { background-color: #ccccbb; }

 /* Fields */
-input[type="text"], input[type="password"], textarea, select { padding: 2px; border: 1px solid #d7d7d7; }
-input[type="text"], input[type="password"] { padding: 3px; }
 input[type="text"]:focus, input[type="password"]:focus, textarea:focus, select:focus { border: 1px solid #888866; }
 option { border-bottom: 1px dotted #d7d7d7; }

Actions #3

Updated by Go MAEDA over 4 years ago

Go MAEDA wrote:

I don't think it is necessary to keep the style "border: 1px solid #d7d7d7;" too. A very similar style (border:1px solid #ccc;) is already defined in public/stylesheets/application.css (see source:trunk/public/stylesheets/application.css@18587#L467

I retract my opinion in #32206#note-2. Since #d7d7d7 is used in many elements in Alternate theme, border-color should be kept for the consistency of the appearance.

Actions #4

Updated by Go MAEDA over 4 years ago

  • Subject changed from Options in a drop-down overlap on the down arrow when Alternate theme is used to Options in a drop-down overlap the down arrow when Alternate theme is used
  • Assignee set to Go MAEDA
  • Target version deleted (4.1.0)
  • Resolution set to Fixed

Committed the fix as a part of #31147.

Actions #5

Updated by Go MAEDA over 4 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF