Skip to content

Commit

Permalink
[SDPA-1576] Change placeholder colour to meet WCAG contrast. (#300)
Browse files Browse the repository at this point in the history
* [SDPA-15766] Change placeholder colour to meet WCAG contrast.

* Set placeholder color on vue-multiselect

* fix lint issue on Imagegallery

* make placeholder 011a3c
  • Loading branch information
dylankelly authored May 27, 2019
1 parent 51f4042 commit b745e70
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/Molecules/Form/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ export default {
&__placeholder {
margin-bottom: 0;
padding: 0;
color: $rpl-form-element-placeholder-color;
}
&__single {
Expand Down
5 changes: 5 additions & 0 deletions packages/Molecules/Form/scss/_form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ $rpl-form-element-border-color: rpl-color('mid_neutral_1') !default;
$rpl-form-element-border-color-focus: rpl-color('primary') !default;
$rpl-form-element-border-radius: rem(4px) !default;
$rpl-form-element-text-color: rpl-color('extra_dark_neutral') !default;
$rpl-form-element-placeholder-color: rpl-color('extra_dark_neutral') !default;
$rpl-form-element-text-highlighted: rpl-color('secondary') !default;
$rpl-form-element-text-ruleset: ('xs', 1em, 'regular');
$rpl-form-element-padding-s-horizontal: $rpl-space-4;
Expand Down Expand Up @@ -43,6 +44,10 @@ $rpl-form-shadow: 0 2px 4px 0 rgba(0, 0, 0, .08) !default;
padding: $rpl-form-element-padding-s;
margin: 0;

&::placeholder {
color: $rpl-form-element-placeholder-color;
}

@include rpl_breakpoint(m) {
padding: $rpl-form-element-padding-m;
}
Expand Down

0 comments on commit b745e70

Please sign in to comment.