-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VAGOV-TEAM-97920: Form Builder Navbar (#20149)
* VAGOV-TEAM-97920: - Renames form-builder theme and sets it as page-level theme. * Allows for active tab to be set on each path. * Updates page template and styles for navbar * Removes unnecessary properties from base form. * Adds id class to each navbar tab * Adds unpkg external stylesheet to the module-defined library. * Attaches styles at page level rather than form level. * Adds unit test for libraries.yml. * Updates existing test suites. * Updates class names in test to reflect changes in template.
- Loading branch information
Showing
14 changed files
with
332 additions
and
105 deletions.
There are no files selected for viewing
90 changes: 89 additions & 1 deletion
90
docroot/modules/custom/va_gov_form_builder/css/va_gov_form_builder.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,92 @@ | ||
/* page container */ | ||
.va-gov-form-builder-page-container { | ||
.form-builder-page-container { | ||
font-family: var(--font-family-serif); | ||
} | ||
|
||
/* headings */ | ||
.form-builder-page-container h1 { | ||
font-size: var(--vads-font-size-heading-level-1); | ||
line-height: var(--units-6); | ||
} | ||
|
||
.form-builder-page-container h2 { | ||
font-size: var(--vads-font-size-heading-level-2); | ||
} | ||
|
||
.form-builder-page-container h2 { | ||
font-size: var(--vads-font-size-heading-level-2); | ||
} | ||
|
||
.form-builder-page-container h3 { | ||
font-size: var(--vads-font-size-heading-level-3); | ||
} | ||
|
||
.form-builder-page-container h4 { | ||
font-size: var(--vads-font-size-heading-level-4); | ||
} | ||
|
||
.form-builder-page-container h5 { | ||
font-size: var(--vads-font-size-heading-level-5); | ||
} | ||
|
||
.form-builder-page-container h6 { | ||
font-size: var(--vads-font-size-heading-level-6); | ||
} | ||
|
||
/* header */ | ||
.form-builder-header { | ||
background-color: var(--va-blue-darkest); | ||
color: var(--va-white); | ||
padding-top: var(--units-1); | ||
} | ||
|
||
/* layout container */ | ||
.form-builder-layout-container { | ||
margin: 0 var(--units-7); | ||
} | ||
|
||
/* title */ | ||
.form-builder-title { | ||
margin-bottom: var(--units-1p5); | ||
} | ||
|
||
/* navbar */ | ||
.form-builder-navbar__nav { | ||
display: flex; | ||
} | ||
|
||
.form-builder-navbar__tabs { | ||
display: flex; | ||
gap: var(--units-5); | ||
list-style: none; | ||
margin: 0; | ||
} | ||
|
||
.form-builder-navbar__tab { | ||
min-width: 100px; | ||
padding: var(--units-1); | ||
position: relative; | ||
text-align: center; | ||
} | ||
|
||
.form-builder-navbar__tab--active { | ||
border-bottom: var(--units-0p5) solid var(--uswds-system-color-gold-vivid-20); | ||
} | ||
|
||
.form-builder-navbar__link { | ||
color: var(--vads-color-white); | ||
font-size: var(--font-size-lg); | ||
font-weight: var(--font-weight-bold); | ||
line-height: var(--vads-font-line-height-default); | ||
text-decoration: none; | ||
} | ||
|
||
.form-builder-navbar__link:hover { | ||
background: transparent; | ||
color: var(--vads-color-white); | ||
} | ||
|
||
.form-builder-navbar__tab--active .form-builder-navbar__link, | ||
.form-builder-navbar__tab--active .form-builder-navbar__link:hover { | ||
color: var(--uswds-system-color-gold-vivid-20); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.