diff --git a/app/assets/stylesheets/_uswds-core.scss b/app/assets/stylesheets/_uswds-core.scss index 2da34521ec5..3f9d36d90d1 100644 --- a/app/assets/stylesheets/_uswds-core.scss +++ b/app/assets/stylesheets/_uswds-core.scss @@ -1,5 +1,6 @@ @forward '@18f/identity-design-system/packages/uswds-core' with ( $theme-body-font-size: 'sm', + $theme-button-icon-gap: 0.5, $theme-font-path: '', $theme-image-path: '', $theme-global-border-box-sizing: true, diff --git a/app/components/icon_component.scss b/app/components/icon_component.scss index 2591b1d1b9c..49b41ae68f8 100644 --- a/app/components/icon_component.scss +++ b/app/components/icon_component.scss @@ -7,23 +7,3 @@ mask-size: 100%; background-color: currentColor; } - -$icon-min-padding: 2px; - -// Upstream: https://github.com/uswds/uswds/pull/4493 -.usa-icon { - .usa-button > &:first-child { - // Note: This diverges from the upstream pull request in a couple ways: - // 1. There should not be any margins offsetting to account for line height, since Login.gov - // Design System normalizes button line height to 1. - // 2. Float is replaced by `vertical-align`, since otherwise it will have the effect of having - // the icon appear to the far edge of the button, rather than next to the text. - vertical-align: bottom; - margin-right: 0.25rem; - } - - .usa-button:not(.usa-button--unstyled) > &:first-child { - margin-left: -1 * $icon-min-padding; - margin-right: #{0.5rem - px-to-rem($icon-min-padding)}; - } -} diff --git a/app/components/tab_navigation_component.scss b/app/components/tab_navigation_component.scss index d9f2847755e..013eb6b4dda 100644 --- a/app/components/tab_navigation_component.scss +++ b/app/components/tab_navigation_component.scss @@ -2,19 +2,6 @@ @forward 'usa-button-group/src/styles'; -// Upstream: https://github.com/uswds/uswds/pull/5324 -.usa-button-group--segmented { - .usa-button { - @include u-display('flex'); - @include u-flex('align-center', 'justify-center'); - } - - .usa-button-group__item { - @include u-display('flex'); - @include grid-col('auto'); - } -} - .tab-navigation .usa-button-group--segmented { .usa-button-group__item { flex-basis: 50%; diff --git a/app/javascript/packages/clipboard-button/package.json b/app/javascript/packages/clipboard-button/package.json index 0d8a3265721..4ff9deff387 100644 --- a/app/javascript/packages/clipboard-button/package.json +++ b/app/javascript/packages/clipboard-button/package.json @@ -3,7 +3,7 @@ "version": "1.0.0", "private": true, "dependencies": { - "@18f/identity-design-system": "^9.0.0" + "@18f/identity-design-system": "^9.1.0" }, "sideEffects": [ "./clipboard-button-element.ts" diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 9f4331c6143..63716c5ae50 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -1,3 +1,7 @@ +<%= content_for(:head) do %> + <%= javascript_include_tag('init.js') %> +<% end %> + <%= extends_layout :base, body_class: local_assigns.fetch(:body_class, 'site tablet:bg-primary-lighter') do %> <%= link_to t('shared.skip_link'), '#main-content', class: 'usa-skipnav' %>
@@ -34,4 +38,6 @@ session_timeout_in: Devise.timeout_in, } %> <% end %> + + <%= javascript_packs_tag_once('application') %> <% end %> diff --git a/app/views/layouts/base.html.erb b/app/views/layouts/base.html.erb index 8af746f3dad..185e4c6e8e7 100644 --- a/app/views/layouts/base.html.erb +++ b/app/views/layouts/base.html.erb @@ -68,7 +68,6 @@ { type: 'application/json', data: { config: '' } }, false, ) %> - <%= javascript_packs_tag_once('application') %> <%= javascript_packs_tag_once('track-errors', async: true) if BrowserSupport.supported?(request.user_agent) %> <%= render_javascript_pack_once_tags %> diff --git a/app/views/shared/_banner.html.erb b/app/views/shared/_banner.html.erb index 80f4665c1f2..b8e8d57c21f 100644 --- a/app/views/shared/_banner.html.erb +++ b/app/views/shared/_banner.html.erb @@ -22,9 +22,6 @@