Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add outline around selected Social Link block
  • Loading branch information
derekblank committed Aug 7, 2023
commit ddc84ceb86769ec6d30880df592193809a3e780a
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { usePreferredColorSchemeStyle } from '@wordpress/compose';
*/
import styles from './block.scss';

const TEXT_BLOCKS_WITH_OUTLINE = [ 'core/missing' ];
const BLOCKS_WITH_OUTLINE = [ 'core/social-link', 'core/missing' ];

function BlockOutline( {
blockCategory,
Expand All @@ -22,7 +22,7 @@ function BlockOutline( {
isSelected,
name,
} ) {
const textBlockWithOutline = TEXT_BLOCKS_WITH_OUTLINE.includes( name );
const textBlockWithOutline = BLOCKS_WITH_OUTLINE.includes( name );
const hasBlockTextCategory =
blockCategory === 'text' && ! textBlockWithOutline;
const hasBlockMediaCategory =
Expand Down
1 change: 1 addition & 0 deletions packages/react-native-editor/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ For each user feature we should also add a importance categorization label to i

## Unreleased
- [*] Display custom color value in mobile Cover Block color picker [#51414]
- [**] Display outline around selected Social Link block [#51414]

## 1.101.0
- [*] Remove visual gap in mobile toolbar when a Gallery block is selected [#52966]
Expand Down