Skip to content

Commit

Permalink
Merge pull request #1045 from pat270/clay-1044
Browse files Browse the repository at this point in the history
Update: (Fixes #1044) Atlas set Checkbox labels to be normal and semi…
  • Loading branch information
marcoscv-work authored Jun 28, 2018
2 parents fc47d66 + 2973bc3 commit 12c4611
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/clay-css/src/scss/atlas/variables/_dropdowns.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ $dropdown-subheader-font-size: 0.75rem !default; // 12px
$dropdown-subheader-margin-top: 0.625rem !default; // 10px

$dropdown-link-color: $secondary !default;
$dropdown-link-font-weight: $font-weight-normal !default;
$dropdown-link-hover-color: $body-color !default;
$dropdown-link-hover-bg: lighten($component-active-bg, 44.90) !default;
$dropdown-link-active-color: $dropdown-link-hover-color !default;
Expand Down
20 changes: 18 additions & 2 deletions packages/clay-css/src/scss/components/_dropdowns.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,17 @@
&.active {
font-weight: $dropdown-link-active-font-weight;

label,
label {
color: $dropdown-link-active-color;
}

.form-check-label {
color: $dropdown-link-active-color;
font-weight: $dropdown-link-active-font-weight;
}

.custom-control-label {
font-weight: $dropdown-link-active-font-weight;
}
}

Expand Down Expand Up @@ -93,7 +101,7 @@
}

&.btn-unstyled {
font-weight: $font-weight-normal;
font-weight: $dropdown-link-font-weight;
padding: $dropdown-item-padding-y $dropdown-item-padding-x;
transition: none;
}
Expand All @@ -102,11 +110,19 @@
margin-bottom: 0;
}

.form-check-label {
font-weight: $dropdown-link-font-weight;
}

.custom-control {
margin-bottom: 0;
margin-right: 0;
min-height: $custom-control-indicator-size;
}

.custom-control-label {
font-weight: $dropdown-link-font-weight;
}
}

.dropdown-section {
Expand Down
1 change: 1 addition & 0 deletions packages/clay-css/src/scss/variables/_dropdowns.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ $dropdown-caption-color: $dropdown-header-color !default;
$dropdown-caption-font-size: 0.875rem !default; // 14px
$dropdown-caption-font-weight: null !default;

$dropdown-link-font-weight: null !default;
$dropdown-link-active-font-weight: null !default;

$dropdown-max-height: 500px !default;
Expand Down

0 comments on commit 12c4611

Please sign in to comment.