-
Notifications
You must be signed in to change notification settings - Fork 163
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dark tabs #4817
Dark tabs #4817
Conversation
I'm not sure if having active and hover state as the same turns out good. It looks a bit weird and confusing especially when you hover on tabs next to the one currently active making it "connected" with active bottom border: Also this makes tabs behave differently from top navigation, that still have hover/active states different: |
Demo URL: https://vanilla-framework-4817.demos.haus/docs/patterns/tabs (please note, for now demos need to be started and restarted manually every time we want them updated) |
@bartaz that's a good point. I changed it to use the border default colour to make them different. I think this would be nice to also apply to side nav, main nav and in general everywhere we have a highlight bar as an indication of active state. Simpler and cleaner. But let's do one step at a time. |
@lyubomir-popov Now, because of transparency of lines it shows "double" lines on hover (with thin line being visible as well as highlight): Is this the way we want to keep it? |
I'll fix it |
@lyubomir-popov I had a quick look into moving the border by 1px. We can't move the bottom border down by 1px, because tabs have overflow hidden, so it would dissapear. We can try to move the thicker line 1px up - this would not affect baseline grid. But because active tab colour is different than bottom border colour the active tab then has a "double" border: Although, I guess it's barely visible on standard zoom. |
I think that's ok. |
Any update on this? |
@ClementChaumel I agree with @bartaz's suggestion above, please implement that. |
Co-authored-by: Bartek Szopka <83575+bartaz@users.noreply.github.com>
Co-authored-by: Bartek Szopka <83575+bartaz@users.noreply.github.com>
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.
Great, thanks!
Done
Add dark theme to tabs. Remove hover backgrounds, replace it by showing the tab highlight on hover. This simplfies theming and we should do it wherever possible.
Fixes WD-4680
QA
Check if PR is ready for release
If this PR contains Vanilla SCSS code changes, it should contain the following changes to make sure it's ready for the release:
Feature 馃巵
,Breaking Change 馃挘
,Bug 馃悰
,Documentation 馃摑
,Maintenance 馃敤
.package.json
should be updated relative to the most recent release, following semver convention:Screenshots