-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Mobile - RichText - Update logic for the placeholder text color #54259
Conversation
Size Change: +963 B (0%) Total Size: 1.52 MB
ℹ️ View Unchanged
|
…ock font size for block-based themes
Flaky tests detected in cd5411d. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6136661090
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I was able to follow the testing steps successfully. 🚀
LGTM! |
@geriux what opacity value did you use for placeholders? I'm not noticing a huge distinction in some places. |
We are using a hexadecimal color code for the transparency, for the placeholders is |
ok cool thanks, 63% sounds good. |
Related PRs:
Fixes wordpress-mobile/gutenberg-mobile#6069
What?
This PR updates the logic for the placeholder text colors for the RichText component and block-based themes.
Why?
Previously, the same colors were displayed for both the placeholder text and the populated RichText component.
How?
Opacity is added to the placeholder text color, utilizing the default text color derived from the theme settings.
The update also resolves a pre-existing issue where the empty placeholder displayed a smaller font size in instances where the current theme had a font size larger than the mobile editor's default. The font size now aligns with the Paragraph block's default size.
Testing Instructions
Precondition: Use a block-based theme like
Didone
Screenshots or screencast
Note: Screenshots done using the Didone theme.