Skip to content

Commit

Permalink
VAGOV-TEAM-97922: Adds sidebar placeholder to Form Builder pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryguyk committed Dec 22, 2024
1 parent ab92cd4 commit d9a6cfb
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/* page container */
.form-builder-page-container {
--vads-color-divider: #a9aeb1;
--color-shadow: #00000040;

font-family: var(--font-family-serif);
}

Expand Down Expand Up @@ -42,7 +45,7 @@

/* layout container */
.form-builder-layout-container {
margin: 0 var(--units-7);
margin: var(--units-2p5) var(--units-7);
}

/* title */
Expand Down Expand Up @@ -90,3 +93,23 @@
.form-builder-navbar__tab--active .form-builder-navbar__link:hover {
color: var(--uswds-system-color-gold-vivid-20);
}

/* two-column layout */
.form-builder-two-column-layout {
display: flex;
gap: var(--units-5);
justify-content: space-between;
width: 100%;
}

.form-builder-right-column {
padding-top: var(--units-2);
}

/* sidebar */
.form-builder-sidebar {
border: 1px solid var(--vads-color-divider);
box-shadow: 0 4px 4px 0 var(--color-shadow);
padding: var(--units-2p5);
width: 340px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,21 @@
</header>

<div class="form-builder-layout-container">
<main class="page-content clearfix" role="main">
<div class="visually-hidden"><a id="main-content" tabindex="-1"></a></div>

{# The form content #}
{{ page.content }}

</main>
<div class="form-builder-two-column-layout">
<div class="form-builder-left-column">
<main class="page-content clearfix" role="main">
<div class="visually-hidden">
<a id="main-content" tabindex="-1"></a>
</div>
{{ page.content }}
</main>
</div>
<div class="form-builder-right-column">
<aside class="form-builder-sidebar">
<p>Sidebar content goes here.</p>
</aside>
</div>
</div>
</div>

</div>
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ public function testExpectedElementsExist() {

$navbarElement = $this->cssSelect('.form-builder-navbar');
$this->assertCount(1, $navbarElement);

$sidebarElement = $this->cssSelect('.form-builder-sidebar');
$this->assertCount(1, $sidebarElement);
}

/**
Expand Down

0 comments on commit d9a6cfb

Please sign in to comment.