[Rt-commit] rt branch 5.0/button-border-in-dark-mode created. rt-5.0.2-25-g9cdeb61e20

BPS Git Server git at git.bestpractical.com
Tue Oct 26 17:24:32 UTC 2021


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt".

The branch, 5.0/button-border-in-dark-mode has been created
        at  9cdeb61e20261201a2fc1366129771145ed4a381 (commit)

- Log -----------------------------------------------------------------
commit 9cdeb61e20261201a2fc1366129771145ed4a381
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Wed Oct 27 00:35:21 2021 +0800

    Add missing css rules(mainly form-control) to buttons
    
    This is to make buttons UI more consistent. Without form-control,
    buttons wouldn't have border set correctly, which can make them hard to
    distinguish in dark mode.

diff --git a/share/html/Admin/Elements/EditRights b/share/html/Admin/Elements/EditRights
index b028057eb6..9e79be4a8a 100644
--- a/share/html/Admin/Elements/EditRights
+++ b/share/html/Admin/Elements/EditRights
@@ -344,8 +344,8 @@ if ( $AddPrincipal ) {
         </p>
       </div>
       <div class="modal-footer">
-        <button type="button" class="btn btn-primary button" data-dismiss="modal"><&|/l&>No</&></button>
-        <button type="button" class="btn btn-primary button" id="grant-own-dashboard-rights-confirm"><&|/l&>Yes</&></button>
+        <button type="button" class="btn btn-primary button form-control" data-dismiss="modal"><&|/l&>No</&></button>
+        <button type="button" class="btn btn-primary button form-control" id="grant-own-dashboard-rights-confirm"><&|/l&>Yes</&></button>
       </div>
     </div>
   </div>
diff --git a/share/html/Admin/Tools/Theme.html b/share/html/Admin/Tools/Theme.html
index ed921b78af..ae62380a85 100644
--- a/share/html/Admin/Tools/Theme.html
+++ b/share/html/Admin/Tools/Theme.html
@@ -59,7 +59,7 @@
     <div id="upload-logo">
       <h2>Logo</h2>
       <& /Elements/Logo, id => 'logo-theme-editor', ShowName => 0 &>
-      <button onclick="setLogoSize()" class="button btn btn-primary" id="logo-size"><&|/l&>Full Size</&></button>
+      <button onclick="setLogoSize()" class="button btn btn-primary form-control" id="logo-size"><&|/l&>Full Size</&></button>
 
       <form method="POST" enctype="multipart/form-data">
         <div class="form-row">
@@ -117,7 +117,7 @@
         <div class="button btn btn-primary primary-colors">
 %   for (@$colors) {
 %     my $fg = $_->{l} >= $text_threshold ? 'black' : 'white';
-          <button type="button" class="button btn btn-primary color-template"
+          <button type="button" class="button btn btn-primary color-template form-control"
                   style="background-color: rgb(<% $_->{c} %>); color: <% $fg %>;">
   <&|/l&>Text</&>
           </button>
diff --git a/share/html/Admin/Users/Modify.html b/share/html/Admin/Users/Modify.html
index 64662e98a2..12c516771a 100644
--- a/share/html/Admin/Users/Modify.html
+++ b/share/html/Admin/Users/Modify.html
@@ -345,7 +345,7 @@
 
         <div class="form-row justify-content-end">
           <div class="col-auto">
-            <button type="Submit" class="button"><&|/l&>Anonymize</&></button>
+            <button type="Submit" class="button btn-primary btn form-control"><&|/l&>Anonymize</&></button>
           </div>
         </form>
       </div>

-----------------------------------------------------------------------


hooks/post-receive
-- 
rt


More information about the rt-commit mailing list