-
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 #20265
[RNMobile] Pullquote block #20265
Conversation
@ceyhun This is looking pretty solid already — nice work! I jotted down some feedback based on the screenshots above. Things you mentioned:
Notes:
|
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.
Will it be possible to not have an edit.native.js
file like we did for the quote block?
Can we try to abstract the surround HTML/CSS on the web edit.js
file to custom components that will have specific behaviour in the web and in the native versions?
I tried to use the web's And there's also a What do you think? |
@ceyhun Per our discussion in Slack, I've updated the design slightly after building it in Figma. A few notes:
Here is the block blueprint for reference (which you can find here): You can safely ignore the border color and keep what you have already, because I am using some colors from an upcoming colors refresh project. |
Can we implement it using a nil version, we normally prefer to have that than trying to switch out big parts of code with Platform.OS checks. |
I would prefer to do this later as it could be a bit complex. You can already apply bold/italic to this text via the toolbar. Does this mean we would save the content with italic styling applied (like if italic was selected from the toolbar) so later-on when you open it on web would you see italic again? Or is it just that we show it italic but the toolbar doesn't highlight the italic icon? |
I tried a So instead I tried to do a non-null implementation and added a
|
That's fine, in fact, I think it might actually be better to not do italic here because it can get messy depending on how the theme styles the quote by default. I will adjust the block design to use regular instead of italic. 👍 |
We can remove the settings toggle from the inline toolbar until we have color support. Agreed it's odd, will update the design accordingly. |
Updated screenshots in the description. |
Re-opened PR with a branch from gutenberg repo: #20952 |
Description
Adds support for Pullquote block in React Native mobile Gutenberg.
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: