Clickable area of a calendar picker indicator is too small.
authortkent@chromium.org <tkent@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 24 Apr 2012 14:47:23 +0000 (14:47 +0000)
committertkent@chromium.org <tkent@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 24 Apr 2012 14:47:23 +0000 (14:47 +0000)
https://bugs.webkit.org/show_bug.cgi?id=84677

Reviewed by Kentaro Hara.

Test: fast/forms/date/date-appearance.html is affected.

* css/html.css:
(input::-webkit-calendar-picker-indicator):
- Remove unnecessary disaplay:inline-block.
- Add paddings instead of the margin.
(input::-webkit-calendar-picker-indicator:hover):
Add hover style.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@115052 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/css/html.css

index ed1e754..9f861ba 100644 (file)
@@ -1,3 +1,19 @@
+2012-04-24  Kent Tamura  <tkent@chromium.org>
+
+        Clickable area of a calendar picker indicator is too small.
+        https://bugs.webkit.org/show_bug.cgi?id=84677
+
+        Reviewed by Kentaro Hara.
+
+        Test: fast/forms/date/date-appearance.html is affected.
+
+        * css/html.css:
+        (input::-webkit-calendar-picker-indicator):
+        - Remove unnecessary disaplay:inline-block.
+        - Add paddings instead of the margin.
+        (input::-webkit-calendar-picker-indicator:hover):
+        Add hover style.
+
 2012-04-24  Alexis Menard  <alexis.menard@openbossa.org>
 
         Another unreviewed build fix for Mac.
index e399478..c7d5317 100644 (file)
@@ -669,10 +669,13 @@ input[type="color"][list]::-webkit-color-swatch {
 
 #if defined(ENABLE_CALENDAR_PICKER) && ENABLE_CALENDAR_PICKER
 input::-webkit-calendar-picker-indicator {
-    display: inline-block;
     width: 0.66em;
     height: 0.66em;
-    -webkit-margin-end: 0.2em;
+    padding: 0.17em 0.34em;
+}
+
+input::-webkit-calendar-picker-indicator:hover {
+    background-color: #eee;
 }
 #endif // ENABLE_CALENDAR_PICKER