Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix regression with placeholder text color. (#10288)
* Fix regression with placeholder text color. Recently we increased the contrast of text color in placeholder text. As part of this, we changed from using opacity, to using rgba, to provide not-fully-opaque placeholder text. This caused a regression in contexts that did not have a light background, because the RGBA obviously adds a color, it doesn't just change the opacity. For example placeholder text in a Cover Image block was suddenly dark, and if you added a dark editor style, placeholder text was not legible. This PR changes that back, with a few tweaks, so it relies on opacity again. The benefit to this is that any block or editor style that provides its own text color for elements can use the placeholder aspect without having to also worry about the placeholder text color in various background environments. This PR ensures there is sufficient (4.7+ contrast ratios) for placeholder text in: - Cover Image - Image captions - Empty paragraphs in dark editor styles * Refactor, and address feedback.
- Loading branch information