Skip to content

Commit 890779f

Browse files
authored
feat: Enhance monaco editor accessibility (kyma-project#4331)
* feat: enhance monaco editor accessibility * test: fix pizzas?
1 parent b310c52 commit 890779f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/shared/components/MonacoEditorESM/hooks/useCreateEditor.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ export const useCreateEditor = ({
5656
scrollbar: {
5757
alwaysConsumeMouseWheel: false,
5858
},
59+
accessibilityPageSize: 10,
60+
ariaLabel: 'Code editor',
5961
...options,
6062
});
6163

tests/integration/support/create-edit-support.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Cypress.Commands.add('saveChanges', (action = 'Create') => {
1212
});
1313

1414
Cypress.Commands.add('checkUnsavedDialog', () => {
15+
cy.wait(500);
1516
cy.getLeftNav().contains('Events').click();
1617

1718
cy.get('ui5-dialog[header-text="Discard Changes"]').should('be.visible');

0 commit comments

Comments
 (0)