From 2437f0d905c49950265ddcb1d658bc925cba0796 Mon Sep 17 00:00:00 2001
From: Romain Courteaud <romain@nexedi.com>
Date: Thu, 24 Sep 2020 10:09:01 +0000
Subject: [PATCH] erp5_web_renderjs_ui: configure button focus

erp5_web_renderjs_ui: keep previous focus color
---
 .../web_page_module/rjs_gadget_erp5_nojqm_css.css         | 7 +++++--
 .../web_page_module/rjs_gadget_erp5_nojqm_css.xml         | 8 +++-----
 .../portal_skins/erp5_web_renderjs_ui/erp5css.less.txt    | 8 +++++++-
 3 files changed, 15 insertions(+), 8 deletions(-)

diff --git a/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_nojqm_css.css b/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_nojqm_css.css
index 1dafd0206c..7186a8c4cc 100644
--- a/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_nojqm_css.css
+++ b/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_nojqm_css.css
@@ -427,10 +427,13 @@ button::-moz-focus-inner {
   padding: 0px;
 }
 input[type=submit]:hover,
-button:hover,
+button:hover {
+  outline: none;
+}
 input[type=submit]:focus,
 button:focus {
-  outline: none;
+  outline-offset: -2px;
+  outline: 2px solid #3388cc;
 }
 /**********************************************
 * Media
diff --git a/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_nojqm_css.xml b/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_nojqm_css.xml
index 8d8a6fdc32..4ea0e7c3e5 100644
--- a/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_nojqm_css.xml
+++ b/bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_nojqm_css.xml
@@ -75,9 +75,7 @@
         </item>
         <item>
             <key> <string>content_type</string> </key>
-            <value>
-              <none/>
-            </value>
+            <value> <string>text/css</string> </value>
         </item>
         <item>
             <key> <string>default_reference</string> </key>
@@ -246,7 +244,7 @@
                   </item>
                   <item>
                       <key> <string>serial</string> </key>
-                      <value> <string>990.6663.38009.56354</string> </value>
+                      <value> <string>986.53918.32237.3225</string> </value>
                   </item>
                   <item>
                       <key> <string>state</string> </key>
@@ -264,7 +262,7 @@
                           </tuple>
                           <state>
                             <tuple>
-                              <float>1613660719.23</float>
+                              <float>1600941690.9</float>
                               <string>UTC</string>
                             </tuple>
                           </state>
diff --git a/bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/erp5css.less.txt b/bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/erp5css.less.txt
index f7d563ff31..3501bfbb99 100644
--- a/bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/erp5css.less.txt
+++ b/bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/erp5css.less.txt
@@ -529,10 +529,16 @@ input[type=submit], button {
   background:transparent;
   color: @colorforeground;
 
-  &:hover, &:focus {
+  &:hover {
     outline: none;
   }
 
+  &:focus {
+    // XXX TODO
+    outline-offset: -2px;
+    outline: 2px @border-type @focus-border-color;
+  }
+
 /*
   // XXX TODO
   // transition: background-color 0.2s ease-out;
-- 
2.30.9