Skip to content

Commit

Permalink
test(a11y): remove scrollable rule for palette
Browse files Browse the repository at this point in the history
This is resolved now 🎉
  • Loading branch information
Niklas Kiefer committed Oct 10, 2023
1 parent 8690082 commit 406d992
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 21 deletions.
5 changes: 0 additions & 5 deletions e2e/visual/no-theme.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,8 @@ test('no-theme - editor', async ({ page, makeAxeBuilder }) => {
await expect(page).toHaveScreenshot();

// and then
// @Note(pinussilvestrus): the palette entries are currently
// not keyboard accessible, as we need to invest in an overall
// editor keyboard experience
// cf. https://github.com/bpmn-io/form-js/issues/536
const results = await makeAxeBuilder({
disableRules: [
'scrollable-region-focusable',
'page-has-heading-one'
]
}).analyze();
Expand Down
5 changes: 0 additions & 5 deletions e2e/visual/theming.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,8 @@ test('theming - editor', async ({ page, makeAxeBuilder }) => {
await expect(page).toHaveScreenshot();

// and then
// @Note(pinussilvestrus): the palette entries are currently
// not keyboard accessible, as we need to invest in an overall
// editor keyboard experience
// cf. https://github.com/bpmn-io/form-js/issues/536
const results = await makeAxeBuilder({
disableRules: [
'scrollable-region-focusable',
'page-has-heading-one'
]
}).analyze();
Expand Down
2 changes: 2 additions & 0 deletions packages/form-js-editor/assets/form-js-editor-base.css
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,7 @@
font-size: 11px;
align-items: center;
border: none;
font-family: inherit;
user-select: none;
color: var( --color-palette-field);
background: var(--color-palette-field-background);
Expand All @@ -648,6 +649,7 @@

.fjs-palette-field .fjs-palette-field-text {
text-align: center;
width: inherit;
}

.fjs-palette-container .fjs-palette-field:hover {
Expand Down
12 changes: 1 addition & 11 deletions packages/form-js-editor/test/spec/FormEditor.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1501,17 +1501,7 @@ describe('FormEditor', function() {
});

// then
// @Note(pinussilvestrus): the palette entries are currently
// not keyboard accessible, as we need to invest in an overall
// editor keyboard experience
// cf. https://github.com/bpmn-io/form-js/issues/536
await expectNoViolations(container, {
rules: {
'scrollable-region-focusable': {
enabled: false
}
}
});
await expectNoViolations(container);
});

});
Expand Down

0 comments on commit 406d992

Please sign in to comment.