Skip to content

Commit

Permalink
Add theme support for forms help text
Browse files Browse the repository at this point in the history
  • Loading branch information
britneywwc authored and bartaz committed Feb 7, 2024
1 parent 2581050 commit e89d526
Showing 1 changed file with 1 addition and 29 deletions.
30 changes: 1 addition & 29 deletions scss/_patterns_form-help-text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,11 @@
.p-form-help-text {
@extend %small-text;

color: $color-mid-dark;
color: $colors--theme--text-muted;
margin-top: -$sp-unit;

&.is-tick-element {
margin-left: $sph--large + $form-tick-box-size;
}
}

@if ($theme-default-forms == 'dark') {
.p-form-help-text {
@include vf-form-help-text-dark-theme;
}
} @else {
.p-form-help-text {
@include vf-form-help-text-light-theme;
}
}

.is-dark .p-form-help-text,
.p-form-help-text.is-dark {
@include vf-form-help-text-dark-theme;
}

.is-light .p-form-help-text,
.p-form-help-text.is-light {
@include vf-form-help-text-light-theme;
}
}

@mixin vf-form-help-text-dark-theme {
color: $colors--dark-theme--text-muted;
}

@mixin vf-form-help-text-light-theme {
color: $colors--light-theme--text-muted;
}

0 comments on commit e89d526

Please sign in to comment.