Skip to content

Commit

Permalink
Fix default focus styles (#5422)
Browse files Browse the repository at this point in the history
* Fix default outline styles

Resolves #5146

* Add changeset

---------

Co-authored-by: Alexander Chudesnov <achudesnov@medallia.com>
  • Loading branch information
Chudesnov and Chudesnov committed May 26, 2023
1 parent 869d124 commit 0b17990
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/late-zebras-dream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'slate-react': minor
---

Prevents default focus styles from being removed in Editable
2 changes: 0 additions & 2 deletions packages/slate-react/src/components/editable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -903,8 +903,6 @@ export const Editable = (props: EditableProps) => {
: {
// Allow positioning relative to the editable element.
position: 'relative',
// Prevent the default outline styles.
outline: 'none',
// Preserve adjacent whitespace and new lines.
whiteSpace: 'pre-wrap',
// Allow words to break if they are too long.
Expand Down

0 comments on commit 0b17990

Please sign in to comment.