-
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
[Mobile] Video block ui/ux enhancements #15551
Conversation
# Conflicts: # packages/block-library/src/index.native.js
# Conflicts: # packages/block-library/src/index.native.js
# Conflicts: # packages/block-editor/src/components/media-placeholder/index.native.js # packages/block-library/src/image/edit.native.js
# Conflicts: # packages/block-library/src/image/edit.native.js # packages/block-library/src/video/style.native.scss
return <SvgIconRetry fill={ styles.iconRetry.fill } />; | ||
} | ||
|
||
return <SvgIcon fill={ styles.icon.fill } />; |
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.
Hey @Tug 👋 I updated icon js files to allow injecting props. Tested with web also, don't seem to have a side effect. How does this solution look to you?
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.
I did a quick test to show what it would look like and pushed here. But after discussing it with you on another channel we agreed that it would be best to handle this separately.
This reverts commit a5bf475.
@Tug and I needed to revert the last commit since we had issues on icon sizes. |
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.
Tested with WPAndroid, WPiOS and example apps, looks good 👍
we'll handle the icon issue under separate PR wordpress-mobile/gutenberg-mobile#1004
In #15551, these were changed to support passing props, but that also means that when you pass the video icon to the `Icon` component, it won't inject the right size, since it's not a SVG component. Instead, we can export the new function to allow for a customizable icon, while exporting the SVG component by default.
In #15551, these were changed to support passing props, but that also means that when you pass the video icon to the `Icon` component, it won't inject the right size, since it's not a SVG component. Instead, we can export the new function to allow for a customizable icon, while exporting the SVG component by default.
This PR improves UI/UX of video and image blocks based on comments from this issue: wordpress-mobile/gutenberg-mobile#966
NOTE
I have implemented all states except one, which is shown in the attached image. I think that we don’t need this state as on Android we have video control which isn’t just Play button, but full video control. So in case of Android, suggested popup would block video control bar + remove block options is presented with trash icon, so we are just doubling action.
TEST
To test from Gutenberg mobile :
Point to branch wordpress-mobile/gutenberg-mobile#979 from WPAndroid or WPiOS application.