Skip to content

Commit

Permalink
Closes #1197 - Make form labels visually distinguishable from descrip…
Browse files Browse the repository at this point in the history
…tion text (#1252)

Co-authored-by: mmunro-ltrr <[email protected]>
Co-authored-by: Dana Hertzberg <[email protected]>
  • Loading branch information
3 people authored Aug 9, 2024
1 parent 41b6da0 commit 0981f86
Show file tree
Hide file tree
Showing 9 changed files with 552 additions and 465 deletions.
15 changes: 15 additions & 0 deletions dist/css/arizona-bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -2679,13 +2679,16 @@ progress {
}
.form-label {
margin-bottom: 0.5rem;
font-size: 1.125rem;
font-weight: 700;
}

.col-form-label {
padding-top: calc(0.375rem + var(--bs-border-width));
padding-bottom: calc(0.375rem + var(--bs-border-width));
margin-bottom: 0;
font-size: inherit;
font-weight: 700;
line-height: 1.5;
}

Expand Down Expand Up @@ -24853,4 +24856,16 @@ have been deprecated in Bootstrap 4.
cursor: pointer;
}

.col-form-label {
font-size: 1.125rem;
}

.col-form-label-lg {
font-size: 1.25rem;
}

.col-form-label-sm {
font-size: 0.875rem;
}

/*# sourceMappingURL=arizona-bootstrap.css.map */
2 changes: 1 addition & 1 deletion dist/css/arizona-bootstrap.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/arizona-bootstrap.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/arizona-bootstrap.min.css.map

Large diffs are not rendered by default.

657 changes: 335 additions & 322 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions scss/_custom-variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,12 @@ $dropdown-link-active-bg: $white;
$dropdown-link-active-color: $blue;
$dropdown-link-disabled-color: $gray-600;

// >> Forms
// fusv-disable
$form-label-font-size: 1.125rem;
$form-label-font-weight: 700;
// fusv-enable

// >> Jumbotron
$jumbotron-bg: $white;
$jumbotron-padding: 2rem;
Expand Down
11 changes: 11 additions & 0 deletions scss/_forms.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.col-form-label {
@include font-size($form-label-font-size);
}

.col-form-label-lg {
@include font-size($input-font-size-lg);
}

.col-form-label-sm {
@include font-size($input-font-size-sm);
}
1 change: 1 addition & 0 deletions scss/arizona-bootstrap.scss
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,4 @@ $theme-colors: map-remove($theme-colors, "primary", "secondary");
@import "carousel";
@import "photo-gallery";
@import "color-contrast";
@import "forms";
Loading

0 comments on commit 0981f86

Please sign in to comment.