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 df6cadd commit b8b8733
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 22 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
4 changes: 3 additions & 1 deletion packages/form-js-editor/assets/form-js-editor-base.css
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
--cds-border-strong,
var(--cds-border-strong-01, var(--color-grey-225-10-80))
);
--color-palette-field-focus: var(--cds-border-interactive, var(--color-blue-219-100-53));
--color-palette-field-focus: var(--cds-border-interactive, var(--color-blue-205-100-40));
--color-palette-field-hover-background: var(--cds-background-hover, var(--color-grey-225-10-90));
--cursor-palette-field: grab;
--palette-width: 250px;
Expand Down 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 b8b8733

Please sign in to comment.