Add support for the stable border feature name
[MAILPOET-6359]
This commit is contained in:
committed by
Jan Lysý
parent
1ebfa4116c
commit
a2b75a73f3
@ -20,7 +20,15 @@ export function BlockCompatibilityWarnings(): JSX.Element {
|
|||||||
);
|
);
|
||||||
|
|
||||||
// Check if the selected block has enabled border configuration
|
// Check if the selected block has enabled border configuration
|
||||||
const hasBorderSupport = hasBlockSupport(
|
const hasBorderSupport =
|
||||||
|
hasBlockSupport(
|
||||||
|
selectedBlock?.name,
|
||||||
|
// @ts-expect-error Border is not yet supported in the types
|
||||||
|
'border',
|
||||||
|
false
|
||||||
|
) ||
|
||||||
|
// We can remove the check for __experimentalBorder after we support WordPress 6.8+.
|
||||||
|
hasBlockSupport(
|
||||||
selectedBlock?.name,
|
selectedBlock?.name,
|
||||||
// @ts-expect-error Border is not yet supported in the types
|
// @ts-expect-error Border is not yet supported in the types
|
||||||
'__experimentalBorder',
|
'__experimentalBorder',
|
||||||
|
Reference in New Issue
Block a user