Skip to content

Commit

Permalink
fix: mainnavigation underneath 1024px viewports (#1970)
Browse files Browse the repository at this point in the history
* fix: we need that label element in general

* updated test
  • Loading branch information
mfranzke authored Dec 13, 2023
1 parent a3befb9 commit db24add
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ describe('db-mainnavigation', () => {
<db-mainnavigation>
<nav class="cmp-mainnavigation" id="mainnavigation">
<input id="toggle_mainnavigation" type="checkbox">
<label class="is-site-name" htmlfor="toggle_mainnavigation" title="Toggle main navigation"></label>
<ul></ul>
</nav>
</db-mainnavigation>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,13 @@ export class DbMainnavigation {
return (
<nav class="cmp-mainnavigation" id="mainnavigation">
<input type="checkbox" id="toggle_mainnavigation" />
{this.siteName && (
<label
htmlFor="toggle_mainnavigation"
title="Toggle main navigation"
class="is-site-name"
>
{this.siteName}
</label>
)}
<label
htmlFor="toggle_mainnavigation"
title="Toggle main navigation"
class="is-site-name"
>
{this.siteName}
</label>
{this.compData && <ul innerHTML={getCompDataHtml(this.compData)} />}
{!this.compData && (
<ul>
Expand Down

0 comments on commit db24add

Please sign in to comment.