-
Notifications
You must be signed in to change notification settings - Fork 91
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
feat(tabs): new light/dark mode colors #1843
Conversation
const borderInlineColor = $isVertical ? borderColor : undefined; | ||
|
||
const selectedColor = getColor({ theme, variable: 'foreground.primary' }); | ||
const foregroundColor = $isSelected ? selectedColor : 'inherit'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@steue @lucijanblagonic The default foreground color was originally set to inherit the TabsList's foreground.default
. This has the benefit of showing a clear distinction between default
and disabled
tabs.
Should we keep it as such or use foreground.subtle
as shown in Figma instead?
CC: @jzempel
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inheriting feels OK here as long as the intent is preserved by the variable (e.g., disabled vs selected vs. default (inherited)). Hopefully I'm understanding this correctly. haha
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ze-flo Yes, the foreground.default
is the preferred color here. We corrected this in design, and we left a note for making the change in the inventory.
The only reason we're not seeing this in the current is due to the fact that the contrast between the inherited foreground and primary blue is not as high. We might need to question whether the border |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything else looks OK.
The last commit removes the color flash when using the keyboard. ✅ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice 🙌
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good! ty!
Description
Adds new light/dark mode colors to
Tabs
Detail
Tabs
Checklist
npm start
)⬅️ renders as expected with reversed (RTL) direction🤘 renders as expected with Bedrock CSS (?bedrock
)