Skip to content

Commit

Permalink
fix: updated few changes of tab component css
Browse files Browse the repository at this point in the history
  • Loading branch information
psastha-patel committed Nov 6, 2024
1 parent 60c7711 commit ffacb31
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
7 changes: 4 additions & 3 deletions css/tabs.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions less/tabs.less
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
@import "shared/mixins-and-vars";

@active-tab-color: #ffffff;
@active-tab-text-color: #7da8d9;
@active-tab-text-color: #1457a3;
@active-tabpanel-text-color: #151515;
@active-tab-border-color: #7da8d9;
@active-tab-border-color--highlight: #999;

@unactive-tab-color: #fff;
@unactive-tab-text-color: #444;
@unactive-tab-border-color: #ccc;
@unactive-tab-border-color: @dark-mode-lightgrey;
@unactive-tab-border-color--highlight: #999;

@active-tab-color--dark-mode: #526068;
@active-tab-color--dark-mode: @dark-mode-white;
@active-tab-text-color--dark-mode: @dark-mode-white;
@active-tabpanel-text-color--dark-mode: @dark-mode-white;
@active-tab-border-color--dark-mode: #ccc;
@active-tab-border-color--dark-mode: @dark-mode-lightgrey;
@active-tab-border-color--highlight--dark-mode: #999;

@unactive-tab-color--dark-mode: @dark-mode-darkgrey;
Expand All @@ -34,6 +34,7 @@
background: black;
color: white;
padding: 0.5em;
margin-bottom: 0.7em;

.enable__is-dark-mode & {
background: #333366;
Expand Down Expand Up @@ -115,11 +116,11 @@

&[aria-selected="true"] {
background: @active-tab-color;
color: #1457a3;
color: @active-tab-text-color;
font-weight: bold;

.enable__is-dark-mode & {
background: @active-tab-color;
background: @active-tab-color--dark-mode;
}
}
}
Expand Down

0 comments on commit ffacb31

Please sign in to comment.