-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RNMobile - Cover Block: First iteration (#19722)
* RNMobile - Cover Block - First iteration * Remove allowed blocks * Fix content height * RNMobile - Update Heading and Paragraph blocks to use __experimentalUseColors * RNMobile - Cover block: import correct icon * RNMobile - Cover block - Default color text for InnerBlocks * Mock use select * RNMobile - Cover block - Use memo from element, don't set min height if the content has higher height * RNMobile - Cover Block - Prettier and get opacity logic improvement * Cover block: Move onCoverSelectMedia to a utils file to be shared with mobile and renaming to attributesFromMedia * RNMobile - Cover block: don't set fontSize by default since it is not supported yet * RNMobile - ImageWithFocalPoint - Move container logic to component and prettier formatting * RNMobile - Cover block: move attributesFromMedia to shared file, renamed onlyMediaLibrary to __experimental * RNMobile - Enable Cover block for testing * RNMobile - Cover block - Allow changing the image and fix blocks with solid background * RNMobile - Cover - Fallback for theme colors * RNMobile - Cover - Fix paddings for cover blocks with and without innerblocks * RNMobile - Cover - Overlay styles as a const instead of a function * RNMobile - Cover block - Remove duplicated export * RNMobile - Paragraph - Test mock import
- Loading branch information
Gerardo Pacheco
authored
Feb 26, 2020
1 parent
7fd526a
commit 34fa8b2
Showing
16 changed files
with
639 additions
and
143 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
13 changes: 13 additions & 0 deletions
13
packages/block-library/src/cover/edit-media-icon.native.js
This file contains 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,13 @@ | ||
/** | ||
* WordPress dependencies | ||
*/ | ||
import { Path, Rect, SVG } from '@wordpress/components'; | ||
|
||
export const EditMediaIcon = ( | ||
<SVG width={ 20 } height={ 20 } viewBox="0 0 20 20"> | ||
<Rect x={ 11 } y={ 3 } width={ 7 } height={ 5 } rx={ 1 } /> | ||
<Rect x={ 2 } y={ 12 } width={ 7 } height={ 5 } rx={ 1 } /> | ||
<Path d="M13,12h1a3,3,0,0,1-3,3v2a5,5,0,0,0,5-5h1L15,9Z" /> | ||
<Path d="M4,8H3l2,3L7,8H6A3,3,0,0,1,9,5V3A5,5,0,0,0,4,8Z" /> | ||
</SVG> | ||
); |
This file contains 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
Oops, something went wrong.