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

fix: switcher repairs #1179

Merged
merged 2 commits into from
Oct 19, 2021
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -138,42 +138,45 @@ header.header {
transition: background-color $duration--fast-02 $carbon--standard-easing;
}

.header .header-button.switcher-button {
background-color: $carbon--gray-100;
border: none;
border-color: transparent;
border-bottom: 1px solid $carbon--gray-80;
&:hover {
background-color: $carbon--gray-80;
}
&:active {
background-color: #3d3d3d;
border-left: 1px solid $ui-05;
border-right: 1px solid $ui-05;
}
&:focus {
outline: 2px solid $carbon--white-0;
outline-offset: -2px;
}
}

// Switcher button, extra specificity to override Carbon tooltip button styles
// Hex values used pending shell theming
.header :global(.bx--tooltip__trigger).header-button.switcher-button {
&:focus {
box-shadow: none;
border-color: $carbon--white-0;
border: none;
outline: 2px solid $carbon--white-0;
outline-offset: -2px;
}
}

.header :global(a.bx--header__menu-item:hover) {
color: $carbon--white-0;
}

.header .header-button.switcher-button {
&:hover {
background-color: $carbon--gray-80;
}
&:focus,
&:focus:active {
outline: 2px solid $carbon--white-0;
outline-offset: -2px;
}
&:active {
background-color: #3d3d3d;
border-left: 2px solid $ui-05;
border-right: 2px solid $ui-05;
}
}

.header-button.switcher-button.switcher-button--open {
border: 2px solid transparent;
border-left: 2px solid $carbon--gray-80;
border-bottom: 2px solid $carbon--gray-100;
background-color: $carbon--gray-100;
border: 1px solid transparent;
border-left: 1px solid $carbon--gray-80;
border-bottom: 1px solid transparent;
&:active {
border-left: 2px solid $carbon--white-0;
box-shadow: none;
border-color: $carbon--white-0;
}
Expand Down