mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-20 06:01:24 +02:00
Fix default focus styles (#5422)
* Fix default outline styles Resolves #5146 * Add changeset --------- Co-authored-by: Alexander Chudesnov <achudesnov@medallia.com>
This commit is contained in:
committed by
GitHub
parent
869d1240d3
commit
0b1799091a
5
.changeset/late-zebras-dream.md
Normal file
5
.changeset/late-zebras-dream.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'slate-react': minor
|
||||||
|
---
|
||||||
|
|
||||||
|
Prevents default focus styles from being removed in Editable
|
@@ -903,8 +903,6 @@ export const Editable = (props: EditableProps) => {
|
|||||||
: {
|
: {
|
||||||
// Allow positioning relative to the editable element.
|
// Allow positioning relative to the editable element.
|
||||||
position: 'relative',
|
position: 'relative',
|
||||||
// Prevent the default outline styles.
|
|
||||||
outline: 'none',
|
|
||||||
// Preserve adjacent whitespace and new lines.
|
// Preserve adjacent whitespace and new lines.
|
||||||
whiteSpace: 'pre-wrap',
|
whiteSpace: 'pre-wrap',
|
||||||
// Allow words to break if they are too long.
|
// Allow words to break if they are too long.
|
||||||
|
Reference in New Issue
Block a user