Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
#580 - footer accordion updates
Browse files Browse the repository at this point in the history
  • Loading branch information
danny-englander committed Feb 21, 2023
1 parent 395e48d commit f61d9ff
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 4 deletions.
17 changes: 17 additions & 0 deletions assets/styles/theme/_uswds-theme-usagov.scss
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,23 @@ $AZ-button-disabled: #859cba;
.usa-list--unstyled > li {
@include u-margin-bottom(1);
}

&__primary-content {
@include at-media(mobile-lg) {
@include u-border-top(1px, "solid", "base-light");
}

@include at-media(tablet) {
border: 0;
}
}
}

.usa-footer--big .usa-footer__primary-content--collapsible .usa-list--unstyled {
@include at-media-max("tablet") {
@include u-padding-x(2);
@include u-padding-y(2);
}
}

.usa-button-group__item,
Expand Down
16 changes: 12 additions & 4 deletions components/BetaUsaGovFooterNav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
<div
:class="match_isNarrowPlus ? '' : 'footer-nav-accordion-wrap'"
class="tablet:grid-col-6 desktop:grid-col-3">
<section class="usa-footer__primary-content usa-footer__primary-content--collapsible usa-accordion">
<section
:class="match_isNarrowPlus ? '' : 'usa-footer__primary-content--collapsible usa-accordion'"
class="usa-footer__primary-content">
<!-- footer nav column 1-->
<h2 :class="match_isNarrowPlus ? 'usa-gov-footer__primary-link' : 'usa-accordion__heading'">
<span v-if="match_isNarrowPlus">{{ $t("beta.footer.column1Title") }}</span>
Expand Down Expand Up @@ -35,7 +37,9 @@
<div
:class="match_isNarrowPlus ? '' : 'footer-nav-accordion-wrap'"
class="tablet:grid-col-6 desktop:grid-col-3">
<section class="usa-footer__primary-content usa-footer__primary-content--collapsible usa-accordion">
<section
:class="match_isNarrowPlus ? '' : 'usa-footer__primary-content--collapsible usa-accordion'"
class="usa-footer__primary-content">
<!-- footer nav column 1-->
<h2 :class="match_isNarrowPlus ? 'usa-gov-footer__primary-link' : 'usa-accordion__heading'">
<span v-if="match_isNarrowPlus">{{ $t("beta.footer.column2Title") }}</span>
Expand Down Expand Up @@ -67,7 +71,9 @@
<div
:class="match_isNarrowPlus ? '' : 'footer-nav-accordion-wrap'"
class="tablet:grid-col-6 desktop:grid-col-3">
<section class="usa-footer__primary-content usa-footer__primary-content--collapsible usa-accordion">
<section
:class="match_isNarrowPlus ? '' : 'usa-footer__primary-content--collapsible usa-accordion'"
class="usa-footer__primary-content">
<!-- footer nav column 1-->
<h2 :class="match_isNarrowPlus ? 'usa-gov-footer__primary-link' : 'usa-accordion__heading'">
<span v-if="match_isNarrowPlus">{{ $t("beta.footer.column3Title") }}</span>
Expand Down Expand Up @@ -99,7 +105,9 @@
<div
:class="match_isNarrowPlus ? '' : 'footer-nav-accordion-wrap'"
class="tablet:grid-col-6 desktop:grid-col-3">
<section class="usa-footer__primary-content usa-footer__primary-content--collapsible usa-accordion">
<section
:class="match_isNarrowPlus ? '' : 'usa-footer__primary-content--collapsible usa-accordion'"
class="usa-footer__primary-content">
<!-- footer nav column 1-->
<h2 :class="match_isNarrowPlus ? 'usa-gov-footer__primary-link' : 'usa-accordion__heading'">
<span v-if="match_isNarrowPlus">{{ $t("beta.footer.column4Title") }}</span>
Expand Down

0 comments on commit f61d9ff

Please sign in to comment.