Skip to content

Commit

Permalink
Updated #2573 to Volto 18: Change text color to black for input:focus (
Browse files Browse the repository at this point in the history
…#6307)

Co-authored-by: ichim-david <[email protected]>
  • Loading branch information
tedw87 and ichim-david authored Sep 25, 2024
1 parent 0e4f508 commit eb14b61
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/volto/cypress/tests/core/basic/a11y.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ describe('Accessibility Tests', () => {

it('Contact form has not a11y violations', () => {
cy.navigate('/contact-form');
cy.get('#field-name').click().type('input');
cy.get('#field-from').click().type('[email protected]');
cy.get('#field-subject').click().type('input');
cy.get('#field-message').click().type('input');
cy.checkA11y();
});

Expand Down
2 changes: 2 additions & 0 deletions packages/volto/news/2570.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Change Form input:focus text color to the `textColor` value for a11y.
Add Cypress test for contact form inputs. @ThomasKindermann @tedw87
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@

&:focus {
border-radius: 0;
color: @textColor;
}
}

Expand Down

0 comments on commit eb14b61

Please sign in to comment.