Skip to content

Commit

Permalink
fix(storefront): BCTHEME-341 fix placeholder contrast ratio (bigcomme…
Browse files Browse the repository at this point in the history
  • Loading branch information
bc-alexsaiannyi authored and sacr3dc0w committed Mar 31, 2021
1 parent 232f0bb commit 45fe62a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

## Draft
- Fixed input placeholder color contrast according to AA standard. [#1933](https://github.com/bigcommerce/cornerstone/pull/1933)

## 5.0.0 (12-14-2020)
- Parse HTML entities in jsContext. [#1917](https://github.com/bigcommerce/cornerstone/pull/1917)
Expand Down
9 changes: 9 additions & 0 deletions assets/scss/components/citadel/forms/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@
// appear before the button.
//
// -----------------------------------------------------------------------------
@mixin placeholder {
&::-webkit-input-placeholder {@content}
&::-moz-placeholder {@content}
&:-ms-input-placeholder {@content}
}

.form-label--alternate {
font-family: fontFamily("headingSans");
Expand Down Expand Up @@ -209,6 +214,10 @@
@include breakpoint("large") {
width: auto;
}

@include placeholder {
color: $formInput-placeholder-color;
}
}

.button {
Expand Down
2 changes: 2 additions & 0 deletions assets/scss/settings/citadel/forms/_settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -231,3 +231,5 @@ $form-checkRadio-labelBefore-top: remCalc(3px);
$form-checkRadio-labelAfter-top: remCalc(4px);

$form-minMaxRow-column-gutter: $column-gutter / 4;

$formInput-placeholder-color: stencilColor("input-font-color");

0 comments on commit 45fe62a

Please sign in to comment.