Skip to content

Commit

Permalink
Ensure that nav-drop item takes full height to prevent unintentional …
Browse files Browse the repository at this point in the history
…mouseover/mouseleave events (#179)

Co-authored-by: Satya Deep Maheshwari <[email protected]>
  • Loading branch information
sdmcraft and Satya Deep Maheshwari authored Apr 5, 2023
1 parent c5ef062 commit 92f5ce5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions blocks/header/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ header secondary-nav .nav-sections {
display: none;
}
header secondary-nav .nav-sections > ul > li.nav-drop {
height: var(--nav-height);
position: relative;
padding-top: 16px;
}
header secondary-nav .nav-sections > ul > li.nav-drop:first-child {
font-family: 'Libre Franklin', Arial, Helvetica, sans-serif;
Expand Down Expand Up @@ -349,6 +351,8 @@ header .sticky {
display: none;
}
header secondary-nav .nav-sections > ul > li:not(:first-child) {
height: var(--nav-height);
padding-top: 16px;
display: unset;
}
header secondary-nav .nav-sections > ul > li > a::after {
Expand Down
5 changes: 4 additions & 1 deletion blocks/header/header.less
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ header {

>ul {
>li.nav-drop {
height: var(--nav-height);
position: relative;
padding-top: 16px;

&:first-child {
font-family: @nav-heading-first-child-font-family;
Expand All @@ -179,7 +181,6 @@ header {
&:not(:first-child) {
display: none;
}

position: relative;
font-size: 18px;
margin: 0;
Expand Down Expand Up @@ -442,6 +443,8 @@ header {
}

&:not(:first-child) {
height: var(--nav-height);
padding-top: 16px;
display: unset;
}

Expand Down

0 comments on commit 92f5ce5

Please sign in to comment.