Skip to content

Commit

Permalink
style: fixes z-index when search is open (#1090)
Browse files Browse the repository at this point in the history
  • Loading branch information
sstrubberg authored Jan 15, 2021
1 parent 63178e5 commit fa3a799
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
top: 0;
right: 0;
width: calc(100% - 3rem);
z-index: 2;
@include carbon--breakpoint('lg') {
position: static;
width: auto;
Expand Down Expand Up @@ -109,7 +110,7 @@ header.header {
border-top: 1px solid transparent;
display: flex;
align-items: center;
z-index: 1;
z-index: 3;
&:focus {
outline: 2px solid $carbon--white-0;
outline-offset: -2px;
Expand All @@ -121,6 +122,10 @@ header.header {
}
}

.collapsed {
z-index: 1;
}

.header .header-button {
flex-shrink: 0;
transition: background-color $duration--fast-02 $carbon--standard-easing;
Expand Down

1 comment on commit fa3a799

@vercel
Copy link

@vercel vercel bot commented on fa3a799 Jan 15, 2021

Choose a reason for hiding this comment

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

Please sign in to comment.