-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Disable align button on the heading block for Android #21268
Disable align button on the heading block for Android #21268
Conversation
Size Change: +2.12 kB (0%) Total Size: 863 kB
ℹ️ View Unchanged
|
setAttributes( { align: nextAlign } ); | ||
} } | ||
/> | ||
{ Platform.OS !== 'android' && ( |
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.
This isn't working for me (I still see the alignment buttons on Android). I think because this is our re-exported Platform
and not the react-native Platform
. I'm seeing Platform.OS
with a value of native
. Do we have to use Platform.select
here?
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.
Working well. Thanks @SergioEstevao !
Description
This PR disables the align controls in the Heading block for Android.
We are disabling it because Aztec for Android is still not ready to support this functionality.
How has this been tested?
This can be tested using this GB mobile PR: wordpress-mobile/gutenberg-mobile#2084
Screenshots
Types of changes
Checklist: