-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Port blockquote block to RN mobile #15482
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
6f02cba
Enable quote block in editor.
SergioEstevao 8dc7c06
Add mobile version of quote edit.
SergioEstevao 116cf9b
Merge branch 'master' into rnmobile/blockquote_port_to_mobile
SergioEstevao ae65dfc
Stop reading focus from context.
SergioEstevao 3bc05ac
Make default tag to be div like on the web.
SergioEstevao 6507230
Implement block quote component in web and RN.
SergioEstevao 4d1de79
Simplify native block quote component.
SergioEstevao f5ebb76
Implement empty Alignment toolbar.
SergioEstevao 536442e
Merge branch 'master' into rnmobile/blockquote_port_to_mobile
SergioEstevao 587a01b
Merge branch 'master' into rnmobile/blockquote_port_to_mobile
SergioEstevao 03be5ad
Fix style import.
SergioEstevao f28f013
Remove import
SergioEstevao a1a16f4
Rename blockquote to BlockQuotation.
SergioEstevao 08b2327
Move BlockQuotation to be a primate component.
SergioEstevao d8b77ba
Add documentation reference for BlockQuotation.
SergioEstevao 1f8a12a
Add BlockQuotation info to the changeling.
SergioEstevao 1f2e231
Update packages/components/CHANGELOG.md
SergioEstevao 889116f
Restore style file.
SergioEstevao File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Move BlockQuotation to be a primate component.
- Loading branch information
commit 08b232792d1832b6f448ea5bac3cc36af3d27144
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
packages/components/src/primitives/block-quotation/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # HorizontalRule | ||
|
|
||
| A drop-in replacement for the HTML [blockquote](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/blockquote) element that works both on the web and in the mobile apps. It indicates that the enclosed text is an extended quotation. | ||
|
|
||
| ## Usage | ||
|
|
||
| ```jsx | ||
| import { BlockQuotation } from '@wordpress/components'; | ||
|
|
||
| const MyBlockQuotation = () => ( | ||
| <BlockQuotation> | ||
| ...Quote content | ||
| </BlockQuotation> | ||
| ); | ||
| ``` |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,3 @@ | ||
| export * from './svg'; | ||
| export * from './horizontal-rule'; | ||
| export * from './block-quotation'; |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
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 wonder if we should gather all these Platform specific components in a separate package or otherwise under the same parent variable.
Whether it's
import { Blockquote, Div } from '@wordpress/platform'or
Uh oh!
There was an error while loading. Please reload this page.
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.
Yep, this is a good point. I think we should extract all those components into their own package and maybe re-export from
@wordpress/componentsfor backward compatibility only. It's definitely out of the scope of this PR @SergioEstevao. Anyway, it's something we should decide on quite soon as you will need to use more HTML tags like:figure,imgul,ol,lidiv