-
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] Pullquote block #20952
[RNMobile] Pullquote block #20952
Conversation
Size Change: +33 B (0%) Total Size: 889 kB
ℹ️ View Unchanged
|
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.
Great work on this!
@jorgefilipecosta Can you take a look at the code as well please? |
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.
Things worked well in my tests. Nice work @ceyhun 👍
style={ blockquoteStyles } | ||
className={ blockquoteClasses } | ||
> | ||
<RichText | ||
identifier="value" |
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.
Identifier and textAlign are only used by native code right?
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.
True for textAlign
. But identifier
also exists in web: https://github.com/WordPress/gutenberg/blob/master/packages/block-editor/src/components/rich-text/index.js#L118
import { PanelBody, UnsupportedFooterControl } from '@wordpress/components'; | ||
import { __ } from '@wordpress/i18n'; | ||
|
||
const PanelColorSettings = () => { |
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.
PanelColorSettings just uses PanelColorGradientSettings, it may be a good idea to add this code to PanelColorGradientSettings so we cover all use cases of colors and gradients.
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.
👍
Description
Adds support for Pullquote block in React Native mobile Gutenberg.
Gutenberg Mobile PR: wordpress-mobile/gutenberg-mobile#1920
Some previous discussions are in this closed PR which was from a fork and closed in favor of this one.
Known issues:
text-transform: uppercase
) doesn't workWanted to get an initial feedback for this so I've put this block under dev flag for now. Planning to handle these issues in a follow-up PR.
How has this been tested?
Pullquote
block from inserter menuScreenshots
Types of changes
New feature (non-breaking change which adds functionality)
Checklist: