Skip to content

Commit

Permalink
[RNMobile] Fix BlockCaption padding visibility (#20535)
Browse files Browse the repository at this point in the history
* fix caption padding visibility
  • Loading branch information
jbinda committed Mar 4, 2020
1 parent c82f622 commit 2446adb
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ import { Caption, RichText } from '@wordpress/block-editor';
import { compose } from '@wordpress/compose';
import { withDispatch, withSelect } from '@wordpress/data';

/**
* Internal dependencies
*/
import styles from './styles.scss';

const BlockCaption = ( {
accessible,
accessibilityLabelCreator,
Expand All @@ -20,7 +25,7 @@ const BlockCaption = ( {
shouldDisplay,
text,
} ) => (
<View style={ { flex: 1, padding: 12 } }>
<View style={ [ styles.container, shouldDisplay && styles.padding ] }>
<Caption
accessibilityLabelCreator={ accessibilityLabelCreator }
accessible={ accessible }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.container {
flex: 1;
}

.padding {
padding: $block-selected-to-content;
}

0 comments on commit 2446adb

Please sign in to comment.