Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 16 additions & 12 deletions src/site/_mixin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,6 @@
box-sizing: border-box;
flex: 1;
display: flex;
align-items: center;
font-size: $font-m;
border-radius: $button-radius;
border-bottom-width: 2px;
Expand All @@ -468,7 +467,7 @@
border: none;

&--active {
color: $accent;
color: $black;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stefan-dragomir It is ok to change to black from accent color of theme, if design team has recommended, as you mentioned in JIRA. Please check, are tabs(tabsontop and vertical) also facing same issue of contrast? They use same colors. Or you can also check with design team, if we should make both follow similar color scheme, as is the case now

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stefan-dragomir

Please add the screenshots and mention the discussion which you had with the designer.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussion archive link added in PR comment and Jira.

}

&:last-child {
Expand Down Expand Up @@ -500,7 +499,6 @@
text-align: center;
font-size: $font-s;
}

}

@mixin default-tab {
Expand All @@ -511,7 +509,8 @@
font-size: $font-m;
align-self: flex-start;
display: flex;
align-items: center;
flex-flow: wrap;
align-items: flex-end !important;
font-weight: 600;
border-radius: $button-radius;
border-width: 2px;
Expand All @@ -525,24 +524,29 @@
}

&--active {
color: $accent;
color: $black;
border-color: transparent;
display: flex;
align-items: center;

background-color: rgba($color: #000, $alpha: .05);
// background-color: rgba($color: #000, $alpha: .05);
// box-shadow: 0 15px 10px -15px rgba(42, 69, 152, 0.345);
&:hover {
color: $accent;
}
}

&--active::after {
content: '—';
display: none;
color: $accent;
&::after {
content: "";
display: block;
width: 100%;
}

&--active::after {
content: "";
display: block;
width: 100%;
border-bottom: 2px solid $black;
}
}

@mixin tab-list {
Expand Down Expand Up @@ -583,7 +587,7 @@
}
&--active {
background-color: rgba($color: #000, $alpha: .05);
color: $secondary;
color: $black
}
}

Expand Down
1 change: 1 addition & 0 deletions src/site/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ $secondary: rgb(22, 22, 22);
$very-light-gray: #ccc;
$bg-gray: #eee;
$white: #fff;
$black: #000;
$error: #b40000;
$light-error: rgba(235, 60, 54, 0.05);
$dark-error: rgba(255, 57, 50, 0.148);
Expand Down
Loading