aboutsummaryrefslogtreecommitdiffstats
path: root/language-web/src/main/js
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2021-10-04 02:16:56 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2021-10-04 02:16:56 +0200
commit57634ff0b6c235cf097b80d677a3a967cd80a6e6 (patch)
treec0abaad191a0651dc3c5fcd4d96b4c8c730f9568 /language-web/src/main/js
parentbuild: refactor task dependencies (diff)
downloadrefinery-57634ff0b6c235cf097b80d677a3a967cd80a6e6.tar.gz
refinery-57634ff0b6c235cf097b80d677a3a967cd80a6e6.tar.zst
refinery-57634ff0b6c235cf097b80d677a3a967cd80a6e6.zip
fix(web): improve accessibility
contenteditable should provide a better experience for screen reader and IME users
Diffstat (limited to 'language-web/src/main/js')
-rw-r--r--language-web/src/main/js/editor/EditorStore.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/language-web/src/main/js/editor/EditorStore.ts b/language-web/src/main/js/editor/EditorStore.ts
index 8b9432dd..705020b9 100644
--- a/language-web/src/main/js/editor/EditorStore.ts
+++ b/language-web/src/main/js/editor/EditorStore.ts
@@ -24,6 +24,8 @@ const codeMirrorGlobalOptions: EditorConfiguration = {
24 mode: `xtext/${xtextLang}`, 24 mode: `xtext/${xtextLang}`,
25 indentUnit: 2, 25 indentUnit: 2,
26 styleActiveLine: true, 26 styleActiveLine: true,
27 screenReaderLabel: 'Model source code',
28 inputStyle: 'contenteditable',
27}; 29};
28 30
29export class EditorStore { 31export class EditorStore {