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

[SDPA-1576] Change placeholder colour to meet WCAG contrast. #300

Merged
merged 7 commits into from
May 27, 2019
Merged
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