Skip to content

Commit

Permalink
fix(plate): активный курсор только для foldable плашек (#912)
Browse files Browse the repository at this point in the history
  • Loading branch information
reme3d2y committed Dec 8, 2021
1 parent 66c2659 commit 06a38bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/plate/src/Component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ export const Plate = forwardRef<HTMLDivElement, PlateProps>(
styles.component,
styles[view],
{
[styles.foldable]: foldable,
[styles.focused]: focused,
[styles.isHidden]: hasCloser && isHidden,
[styles.isFolded]: foldable && folded,
Expand Down
3 changes: 3 additions & 0 deletions packages/plate/src/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
min-height: 56px;
padding: var(--gap-m);
outline: none;
}

.foldable {
cursor: pointer;
}

Expand Down

0 comments on commit 06a38bd

Please sign in to comment.