You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by hn...@apache.org on 2023/06/27 09:31:23 UTC

[myfaces-tobago] branch main updated: refactor(SCSS): use prefix variable

This is an automated email from the ASF dual-hosted git repository.

hnoeth pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git


The following commit(s) were added to refs/heads/main by this push:
     new e902403875 refactor(SCSS): use prefix variable
e902403875 is described below

commit e902403875698da0786a03aacd01310833d6f363
Author: Henning Noeth <hn...@apache.org>
AuthorDate: Tue Jun 27 11:20:39 2023 +0200

    refactor(SCSS): use prefix variable
---
 tobago-theme/src/main/scss/_tobago.scss | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/tobago-theme/src/main/scss/_tobago.scss b/tobago-theme/src/main/scss/_tobago.scss
index 7533093e7b..85f9455974 100644
--- a/tobago-theme/src/main/scss/_tobago.scss
+++ b/tobago-theme/src/main/scss/_tobago.scss
@@ -163,7 +163,7 @@ $tobago-flex-layout-spacing: 0.5rem;
     }
   }
   tobago-popover > a {
-    --bs-btn-padding-x: .4rem;
+    --#{$prefix}btn-padding-x: .4rem;
   }
 }
 
@@ -192,9 +192,9 @@ $tobago-flex-layout-spacing: 0.5rem;
     }
 
     .list-group {
-      --bs-list-group-color: #{$input-focus-color};
-      --bs-list-group-bg: #{$input-focus-bg};
-      --bs-list-group-border-color: #{$input-focus-border-color};
+      --#{$prefix}list-group-color: #{$input-focus-color};
+      --#{$prefix}list-group-bg: #{$input-focus-bg};
+      --#{$prefix}list-group-border-color: #{$input-focus-border-color};
 
       @include formControlFocusShadows();
       @include selectListBorderColorShadow("danger", $danger);
@@ -301,8 +301,8 @@ $tobago-flex-layout-spacing: 0.5rem;
         }
 
         &.tobago-preselect {
-          --bs-table-accent-bg: var(--bs-table-hover-bg);
-          color: var(--bs-table-hover-color);
+          --#{$prefix}table-accent-bg: var(--#{$prefix}table-hover-bg);
+          color: var(--#{$prefix}table-hover-color);
         }
 
         &:last-of-type {
@@ -490,8 +490,8 @@ tobago-buttons {
 
   > tobago-dropdown:last-child > .tobago-button.dropdown-toggle-split:first-child {
     //split buttons in Tobago have a tobago-dropdown tag included, which leads to an issue with border-radius
-    border-top-right-radius: var(--bs-btn-border-radius);
-    border-bottom-right-radius: var(--bs-btn-border-radius);
+    border-top-right-radius: var(--#{$prefix}btn-border-radius);
+    border-bottom-right-radius: var(--#{$prefix}btn-border-radius);
   }
 }