-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[RNMobile] Social Icons: Ensure inactive icons are visible with block-based themes #55398
Conversation
Size Change: 0 B Total Size: 1.69 MB ℹ️ View Unchanged
|
Flaky tests detected in a725f24. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6612177137
|
|
Thank you for working on addressing this issue @SiobhyB ! I see you mentioned:
But what if we just use the active background but with opacity for inactive states? Similar to what the web editor does: Have we considered that? It's just an idea, having this approach works too! |
@geriux, this is a great idea, I much prefer the look from your screenshots. cc-ing @osullivanchris, @paulforgione for a confidence check on the best approach, too. |
@SiobhyB @geriux I like using the background color with opacity. It looks good in the first example. I am a bit confused by the 4 screenshots shown in the second example. To me, only the light mode screenshot looks like it has inactive buttons? The others all look fully active, unless I've missed something. |
I think it's because I didn't add opacity to the icons and just their backgrounds 😅 , but ideally the opacity should be applied to both the icon and the background. Something like: |
Yeah that looks like what I would expect! |
As per the feedback here, we've decided to reduce the opacity of inactive icons, rather than setting custom colors: #55398 (comment) This change aligns with the web's behaviour.
@geriux, @osullivanchris, thank you both! I've gone ahead to make those changes and updated the screenshots in the PR's description. I set the opacity to |
@SiobhyB looks good to me! |
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! Nice work! 🚀 I've tested this on both iOS and Android
What?
Fixes wordpress-mobile/gutenberg-mobile#4780, by ensuring inactive icons within the Social Icons block are always visible within the editor.
Why?
There are currently certain scenarios where inactive icons in the block are invisible. This happens if a block-based theme with a light background is active, as the native editor displays the light background in contrast with the block's dark mode styles.
How?
The logic associated with inactive icon styles has been updated so that, instead of using custom colours, we now always use a reduced opacity. This ensures the inactive icons are visible across all types of themes, and also matches the web's behaviour. Further discussion on this approach can be found in the comments here: #55398 (comment)
Testing Instructions
Testing Instructions for Keyboard
N/A, solely a visual change.
Screenshots or screencast
Dark mode
Light mode