ソースを参照

[WebProfilerBundle] changed search input on web profiler to use HTML5 search input type

Douglas Greenshields 14 年 前
コミット
e4f9f4ddd7

+ 5 - 0
src/Symfony/Bundle/WebProfilerBundle/Resources/public/css/profiler.css

@@ -376,6 +376,11 @@ td.main, td.menu {
     color:#565656;
 }
 
+.search input[type="search"]
+{
+    -webkit-appearance: textfield;
+}
+
 .search button
 {
     -webkit-appearance: button-bevel;

+ 1 - 1
src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/layout.html.twig

@@ -18,7 +18,7 @@
                             <img src="{{ asset('bundles/webprofiler/images/profiler/grey_magnifier.png') }}" alt="Search on Symfony website"/>
                         </label>
 
-                        <input name="q" id="search_id" type="text" placeholder="Search on Symfony website"/>
+                        <input name="q" id="search_id" type="search" placeholder="Search on Symfony website"/>
 
                         <button type="submit">
                             <span class="border_l">