Skip to content

Commit

Permalink
Adds changes based on code review
Browse files Browse the repository at this point in the history
  • Loading branch information
dragoss-nc committed Dec 10, 2024
1 parent 57969d7 commit 4ffbc93
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
15 changes: 7 additions & 8 deletions blocks/header/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ header {
}
}

nav {
box-sizing: border-box;
.nav {
display: grid;
grid-template:
'hamburger brand tools' var(--nav-height)
Expand All @@ -29,6 +28,12 @@ nav {
padding-inline: var(--content-padding-inline);
font-family: var(--body-font-family);

@media (min-width: 1280px) {
display: flex;
justify-content: space-between;
gap: 0 32px;
}

&[aria-expanded='true'] {
grid-template:
'hamburger brand' var(--nav-height)
Expand All @@ -43,12 +48,6 @@ nav {
}
}

@media (min-width: 1280px) {
display: flex;
justify-content: space-between;
gap: 0 32px;
}

p {
margin: 0;
line-height: 1;
Expand Down
1 change: 1 addition & 0 deletions blocks/header/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ export default async function decorate(block) {
block.textContent = '';
const nav = document.createElement('nav');
nav.id = 'nav';
nav.classList.add('nav');
while (fragment.firstElementChild) nav.append(fragment.firstElementChild);

const classes = ['brand', 'sections', 'tools'];
Expand Down

0 comments on commit 4ffbc93

Please sign in to comment.