Add support for the stable border feature name

[MAILPOET-6359]
This commit is contained in:
Rostislav Wolny
2024-12-20 14:47:41 +01:00
committed by Jan Lysý
parent 1ebfa4116c
commit a2b75a73f3

View File

@ -20,7 +20,15 @@ export function BlockCompatibilityWarnings(): JSX.Element {
);
// 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,
// @ts-expect-error Border is not yet supported in the types
'__experimentalBorder',