1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-09-03 04:02:33 +02:00

Use stylesheets to give Editable components default styles (#5206)

* Use stylesheet to give Editable components a default style

* Give Editors a unique id

* Use per-editor stylesheets to give editors a min-height

* Make editor min-height respond to changes in placeholder height

* Add changeset for stylesheet changes

* Prevent unnecessary creations of ResizeObservers

* Update yarn.lock
This commit is contained in:
Kyle McLean
2022-12-03 21:26:17 -07:00
committed by GitHub
parent d1f90ebd12
commit 96b7fcdbf9
9 changed files with 119 additions and 19 deletions

View File

@@ -3739,6 +3739,13 @@ __metadata:
languageName: node
linkType: hard
"@types/resize-observer-browser@npm:^0.1.7":
version: 0.1.7
resolution: "@types/resize-observer-browser@npm:0.1.7"
checksum: 0377eaac8bb7a17b983b49a156006032380b459bfebefc54a5aa2f7f8a9786d2b60723e8837c61ef733330b478f4f26293e9edbdc8006238e4f80c878c56c988
languageName: node
linkType: hard
"@types/resolve@npm:0.0.8":
version: 0.0.8
resolution: "@types/resolve@npm:0.0.8"
@@ -14235,6 +14242,7 @@ resolve@^2.0.0-next.3:
"@types/react": ^16.9.13
"@types/react-dom": ^16.9.4
"@types/react-test-renderer": ^16.8.0
"@types/resize-observer-browser": ^0.1.7
direction: ^1.0.3
is-hotkey: ^0.1.6
is-plain-object: ^5.0.0