Skip to content

Commit

Permalink
Fix table selection
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfeng33 committed Dec 23, 2024
1 parent b7b7de4 commit 1b8f97b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions apps/www/content/docs/components/changelog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion apps/www/src/registry/default/plate-ui/table-element.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
>
Expand Down

0 comments on commit 1b8f97b

Please sign in to comment.