Skip to content

Commit

Permalink
fix: update placeholder styles to be consistent in all browsers (#6914)
Browse files Browse the repository at this point in the history
* fix(helper-mixins): update placeholder-colors mixin

* fix(date-picker): import placeholder-colors mixin

* fix(search): import placeholder-colors mixin

* fix(time-picker): import placeholder-colors mixin

Co-authored-by: Lauren Rice <43969356+laurenmrice@users.noreply.github.com>
  • Loading branch information
emyarod and laurenmrice committed Sep 28, 2020
1 parent 2f61742 commit 2ec2ff5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@
}

&::placeholder {
color: $text-05;
opacity: 1;
@include placeholder-colors;
}
}

Expand Down
4 changes: 1 addition & 3 deletions packages/components/src/components/search/_search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@
}

&::placeholder {
color: $text-05;
font-weight: 400;
@include placeholder-colors;
}

&::-ms-clear {
Expand All @@ -69,7 +68,6 @@

&::placeholder {
color: $disabled;
font-weight: 400;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
background-color $duration--fast-01 motion(standard, productive);

&::placeholder {
color: $text-05;
@include placeholder-colors;
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/globals/scss/_helper-mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
/// @example @include placeholder-colors;
/// @group global-helpers
@mixin placeholder-colors {
color: $text-03;
color: $text-05;
opacity: 1;
}

Expand Down

0 comments on commit 2ec2ff5

Please sign in to comment.