diff --git a/apps/www/content/docs/components/changelog.mdx b/apps/www/content/docs/components/changelog.mdx index ab56ac564a..f1dcd58d74 100644 --- a/apps/www/content/docs/components/changelog.mdx +++ b/apps/www/content/docs/components/changelog.mdx @@ -10,6 +10,13 @@ Use the [CLI](https://platejs.org/docs/components/cli) to install the latest ver ## December 2024 #17 +### December 23 #17.5 + +- `table-element`: fix selection +- before: `isSelectingCell && '[&_*::selection]:bg-none'` +- after: `isSelectingCell && '[&_*::selection]:!bg-transparent'` + + ### December 21 #17.4 Update `tailwind.config.cjs` for better font support in the HTML export: diff --git a/apps/www/src/registry/default/plate-ui/table-element.tsx b/apps/www/src/registry/default/plate-ui/table-element.tsx index 277c289252..620bdaa3a3 100644 --- a/apps/www/src/registry/default/plate-ui/table-element.tsx +++ b/apps/www/src/registry/default/plate-ui/table-element.tsx @@ -217,7 +217,7 @@ export const TableElement = withHOC( ref={ref} className={cn( 'my-4 ml-px mr-0 table h-px w-[calc(100%-6px)] table-fixed border-collapse', - isSelectingCell && '[&_*::selection]:bg-none' + isSelectingCell && '[&_*::selection]:!bg-transparent' )} {...tableProps} >