From 68d49fc8dd7b06aaa3e912bde6cf50580177ff56 Mon Sep 17 00:00:00 2001 From: Jonathan Bobel Date: Mon, 14 Aug 2023 14:30:57 -0400 Subject: [PATCH] More updates to checkboxes and radio buttons --- .../uswds/_uswds-theme-custom-styles.scss | 33 +++++++++---------- app/templates/components/select-input.html | 12 +++---- .../us_components/fieldset/template.njk | 2 +- .../views/templates/_template_list.html | 8 ++--- app/templates/views/templates/choose.html | 2 +- 5 files changed, 26 insertions(+), 31 deletions(-) diff --git a/app/assets/sass/uswds/_uswds-theme-custom-styles.scss b/app/assets/sass/uswds/_uswds-theme-custom-styles.scss index 2326b92db..368d4d22d 100644 --- a/app/assets/sass/uswds/_uswds-theme-custom-styles.scss +++ b/app/assets/sass/uswds/_uswds-theme-custom-styles.scss @@ -128,26 +128,20 @@ td.table-empty-message { box-shadow: none; } -// .template-list-item-without-ancestors a.template-list-folder:first-of-type { -// background: url(../img/material-icons/folder.svg) no-repeat; -// } - .folder-heading a.folder-heading-folder, .template-list-folder { background: url(../img/material-icons/folder.svg) no-repeat; padding-left: units(4); display: inline-block; - height: units(4); - &:hover { - background: url(../img/material-icons/folder.svg) no-repeat; - } + background-position: 0; } .folder-heading-folder { - background: url(../img/material-icons/folder.svg) no-repeat; + background: url(../img/material-icons/folder_open.svg) no-repeat; padding-left: units(4); display: inline-block; - height: units(4); + background-size: units(3) units(3); + background-position: 0; } .message-name-separator:before, .folder-heading-separator:before { @@ -155,15 +149,10 @@ td.table-empty-message { margin: 0 units(0.5); } -.folder-heading a.folder-heading-folder-truncated { - background-position: 0; -} - .usa-template-list-template { background: url(../img/material-icons/description.svg) no-repeat; padding-left: units(4); display: inline-flex; - height: units(4); } .template-list-item-hint { @@ -187,10 +176,8 @@ td.table-empty-message { } .js-stick-at-bottom-when-scrolling { - margin: 0 0 units(5); - padding: units(2) 0; display: flex; - align-items: center; + align-items: flex-end; justify-content: space-between; overflow: visible; button { @@ -280,6 +267,9 @@ td.table-empty-message { } .dashboard-table { + table { + width: 100%; + } .file-list-filename { font-weight: bold; } @@ -288,6 +278,13 @@ td.table-empty-message { } } +#template-list { + max-height: 500px; + overflow-y: auto; + padding-left: units(1); + margin: units(2) 0; +} + // Tabs .tabs { diff --git a/app/templates/components/select-input.html b/app/templates/components/select-input.html index ce2df8897..47ec19c5d 100644 --- a/app/templates/components/select-input.html +++ b/app/templates/components/select-input.html @@ -41,8 +41,8 @@ {% if is_collapsible %}
{% endif %} -
- +
+ {% if hide_legend %}{% endif %} {{ field.label.text|safe }} {% if hide_legend %}{% endif %} @@ -64,12 +64,12 @@ {% macro select_input(option, disable=[], option_hints={}, data_target=None, as_list_item=False, input="radio") %} {% if as_list_item %} -
  • +
  • {% else %} -
    +
    {% endif %} -