Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closes #1197 - Make form labels visually distinguishable from description text #1252

Merged
merged 12 commits into from
Aug 9, 2024
Merged
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
Loading