Skip to content

Commit

Permalink
fix(text-editor): ensure tabbing into the editor will focus on input …
Browse files Browse the repository at this point in the history
…area first

and next time you press Tab, the action bar items
will receive focus.
  • Loading branch information
Kiarokh authored and LucyChyzhova committed May 3, 2024
1 parent 3353bd7 commit ceb33ef
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
@use '../../../style/internal/shared_input-select-picker.scss';

:host(limel-prosemirror-adapter) {
display: block;
display: flex;
flex-direction: column;

limel-action-bar {
order: 1;
}

div#editor {
order: 2;
}
}

* {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ export class ProsemirrorAdapter {

public render() {
return [
<div id="editor" />,
<limel-action-bar
accessibleLabel="Toolbar"
actions={this.actionBarItems}
onItemSelected={this.handleActionBarItem}
/>,
<div id="editor" />,
];
}

Expand Down

0 comments on commit ceb33ef

Please sign in to comment.