Skip to content
Merged
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
Prev Previous commit
Next Next commit
Update List block v2 placholder currentTextColor
  • Loading branch information
derekblank authored and Gerardo committed Aug 25, 2022
commit b656a5240b80436734380aa27c70620a939855db
4 changes: 3 additions & 1 deletion packages/block-library/src/list-item/edit.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,10 @@ export default function ListItemEdit( {
styles[ 'wp-block-list-item__list-item-placeholder--dark' ]
);

const currentTextColor = style?.color || style?.baseColors?.color?.text;

const defaultPlaceholderTextColor = style?.baseColors?.color?.text
? styles.color || style.baseColors.color.text
? currentTextColor
: defaultPlaceholderFromScheme?.color;

// Add hex opacity to default placeholder text color and style object
Expand Down