-
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.
Merge branch 'main' into VACMS-19060-error-thrown-on-aging-content
- Loading branch information
Showing
16 changed files
with
340 additions
and
113 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,25 +12,13 @@ abstract class FormBuilderBase extends FormBase { | |
|
||
/** | ||
* {@inheritdoc} | ||
* | ||
* After initially containing some logic, this function | ||
* is now empty, and this entire class is a candiate | ||
* for removal. Leaving it here for now, as it might prove | ||
* necessary as we continue on. | ||
*/ | ||
public function buildForm(array $form, FormStateInterface $form_state) { | ||
$form['#theme'] = 'va_gov_form_builder'; | ||
$form['#title'] = $this->t('Form Builder'); | ||
|
||
// Add styles. | ||
$form['#attached']['html_head'][] = [ | ||
[ | ||
'#tag' => 'link', | ||
'#attributes' => [ | ||
'rel' => 'stylesheet', | ||
'href' => 'https://unpkg.com/@department-of-veterans-affairs/[email protected]/dist/tokens/css/variables.css', | ||
], | ||
], | ||
'external_stylesheet', | ||
]; | ||
$form['#attached']['library'][] = 'va_gov_form_builder/va_gov_form_builder_styles'; | ||
|
||
return $form; | ||
} | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ va_gov_form_builder_styles: | |
css: | ||
theme: | ||
css/va_gov_form_builder.css: {} | ||
https://unpkg.com/@department-of-veterans-affairs/[email protected]/dist/tokens/css/variables.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
Oops, something went wrong.