Skip to content

Commit

Permalink
Fixes tabs styling (#389)
Browse files Browse the repository at this point in the history
- Fix: Tabs styling
  • Loading branch information
HeleenSG authored Oct 3, 2023
1 parent b446326 commit 8377b2e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/documentation/components/tabs.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,15 @@ <h3>CSS</h3>
--tabs-item-line-height: ;
--tabs-item-background-color: ;
--tabs-item-text-decoration: ;
--tabs-item-font-weight: ;

/* List item hover */
--tabs-item-hover-border-width: ;
--tabs-item-hover-border-style: ;
--tabs-item-hover-border-color: ;
--tabs-item-hover-text-color: ;
--tabs-item-hover-background-color: ;
--tabs-item-hover-font-weight: ;

/* List item active */
--tabs-item-active-border-width: ;
Expand All @@ -171,13 +173,15 @@ <h3>CSS</h3>
--tabs-item-active-text-color: ;
--tabs-item-active-background-color: ;
--tabs-item-padding: ;
--tabs-item-active-font-weight: ;

/* List item active hover */
--tabs-item-active-hover-border-width: ;
--tabs-item-active-hover-border-style: ;
--tabs-item-active-hover-border-color: ;
--tabs-item-active-hover-text-color: ;
--tabs-item-active-hover-background-color: ;
--tabs-item-active-hover-font-weight: ;
}
</code>
</pre>
Expand Down
6 changes: 5 additions & 1 deletion manon/tabs-variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@
--tabs-item-line-height: var(--application-base-line-height);
--tabs-item-background-color: var(--tabs-background-color);
--tabs-item-text-decoration: none;
--tabs-item-font-weight: var(--application-base-font-weight);

/* List item hover */
--tabs-item-hover-border-width: 0 0 4px 0;
--tabs-item-hover-border-width: 0;
--tabs-item-hover-border-style: solid;
--tabs-item-hover-border-color: var(--application-base-accent-color);
--tabs-item-hover-text-color: black;
--tabs-item-hover-background-color: var(--tabs-item-background-color);
--tabs-item-hover-font-weight: var(--tabs-item-font-weight);

/* List item active */
--tabs-item-active-border-width: 0 0 4px 0;
Expand All @@ -34,11 +36,13 @@
--tabs-item-active-text-color: black;
--tabs-item-active-background-color: var(--tabs-item-background-color);
--tabs-item-padding: 0.5rem 0;
--tabs-item-active-font-weight: bold;

/* List item active hover */
--tabs-item-active-hover-border-width: 0 0 4px 0;
--tabs-item-active-hover-border-style: solid;
--tabs-item-active-hover-border-color: var(--application-base-accent-color);
--tabs-item-active-hover-text-color: black;
--tabs-item-active-hover-background-color: var(--tabs-item-background-color);
--tabs-item-active-hover-font-weight: var(--tabs-item-active-font-weight);
}
4 changes: 4 additions & 0 deletions manon/tabs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
padding: var(--tabs-item-padding);
background-color: var(--tabs-item-background-color);
text-decoration: var(--tabs-item-text-decoration);
font-weight: var(--tabs-item-font-weight);
white-space: nowrap;
display: inline-block;

Expand All @@ -21,6 +22,7 @@
border-style: var(--tabs-item-hover-border-style);
border-color: var(--tabs-item-hover-border-color);
color: var(--tabs-item-hover-text-color);
font-weight: var(--tabs-item-hover-font-weight);
background-color: var(--tabs-item-hover-background-color);
}
}
Expand All @@ -31,13 +33,15 @@
border-color: var(--tabs-item-active-border-color);
color: var(--tabs-item-active-text-color);
background-color: var(--tabs-item-active-background-color);
font-weight: var(--tabs-item-active-font-weight);

&:hover {
border-width: var(--tabs-item-active-hover-border-width);
border-style: var(--tabs-item-active-hover-border-style);
border-color: var(--tabs-item-active-hover-border-color);
color: var(--tabs-item-active-hover-text-color);
background-color: var(--tabs-item-active-hover-background-color);
font-weight: var(--tabs-item-active-hover-font-weight);
}
}

Expand Down

0 comments on commit 8377b2e

Please sign in to comment.