Skip to content

Commit

Permalink
Add mixin for input placeholder color.
Browse files Browse the repository at this point in the history
  • Loading branch information
afercia committed Feb 28, 2025
1 parent 24550fb commit 9a5f2d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
4 changes: 4 additions & 0 deletions packages/base-styles/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,10 @@
@include input-style__focus();
}

@include input-placeholder-color;
}

@mixin input-placeholder-color {
// Use opacity to work in various editor styles.
&::-webkit-input-placeholder {
color: $dark-gray-placeholder;
Expand Down
12 changes: 1 addition & 11 deletions packages/editor/src/components/post-text-editor/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,5 @@ textarea.editor-post-text-editor {
position: relative;
}

&::-webkit-input-placeholder {
color: $dark-gray-placeholder;
}

&::-moz-placeholder {
color: $dark-gray-placeholder;
}

&:-ms-input-placeholder {
color: $dark-gray-placeholder;
}
@include input-placeholder-color;
}

0 comments on commit 9a5f2d8

Please sign in to comment.