Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tabs state colours to reflect designs #5509

Merged
merged 6 commits into from
Feb 11, 2025
Merged
Show file tree
Hide file tree
Changes from 4 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
5 changes: 5 additions & 0 deletions .changeset/tiny-elephants-kick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@kaizen/components': patch
---

Tabs: small style changes in line with button
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
}

&:focus-visible {
background: var(--color-blue-100);
Copy link
Contributor

Choose a reason for hiding this comment

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

If I'm interpreting the jira screenshot correctly focused should still have the blue background?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There were a few differences between the jira screenshot and the Figma branch that Jess was working on -> I'm going off this figma design

color: var(--color-blue-500);
border-color: var(--color-blue-500);
}
Expand All @@ -37,9 +36,13 @@
}

&:not([data-disabled]):hover {
background: var(--color-blue-100);
background: var(--color-blue-200);
color: var(--color-blue-500);
}

&:not([data-disabled]):active {
background: var(--color-blue-100);
}
}

.tab[data-selected] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
}

.tabList {
border-bottom: 1px solid rgba(var(--color-gray-600-rgb), 0.1);
border-bottom: 1px solid var(--color-gray-300);
padding: var(--spacing-6) 0 0;
width: 100%;
height: 100%;
Expand Down Expand Up @@ -42,7 +42,7 @@

.leftArrow,
.leftArrow:hover {
border-right: 1px solid rgba(var(--color-gray-600-rgb), 0.1);
border-right: 1px solid var(--color-gray-300);
}

.rightArrow {
Expand All @@ -51,10 +51,17 @@

.rightArrow,
.rightArrow:hover {
border-left: 1px solid rgba(var(--color-gray-600-rgb), 0.1);
border-left: 1px solid var(--color-gray-300);
}

.leftArrow:hover,
.rightArrow:hover {
background: var(--color-gray-200);
background: var(--color-blue-200);
color: var(--color-blue-500);
}

.leftArrow:active,
.rightArrow:active {
background: var(--color-blue-100);
color: var(--color-blue-500);
}