Skip to content

Commit

Permalink
making prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Claire.Nicholas authored and Claire.Nicholas committed Oct 30, 2023
1 parent 4628721 commit cce19dc
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 14 deletions.
8 changes: 4 additions & 4 deletions cypress/integration/a11y.lighttheme.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ const A11Y_OPTS = {
const elmExclude = '[style*="padding-left: calc(1ch + 6px)"]';

context('Accessibility (a11y)', () => {
context('Logged out', () => {
it('overview', () => {
context('Logged out', () => {
it('overview', () => {
//cy.clearSession();
cy.setTheme('theme-light');
cy.visit('/account/login');
cy.injectAxe();
cy.wait(500);
// excludes accessibility testing for Elm pop-up that only appears in Cypress and not on the actual UI
cy.checkA11y({exclude: [elmExclude]}, A11Y_OPTS);
cy.checkA11y({ exclude: [elmExclude] }, A11Y_OPTS);
});
});

Expand Down Expand Up @@ -95,7 +95,7 @@ context('Accessibility (a11y)', () => {
cy.wait(500);
cy.clickSteps();
// excludes accessibility testing for Elm pop-up that only appears in Cypress and not on the actual UI
cy.checkA11y({exclude: [elmExclude]}, A11Y_OPTS);
cy.checkA11y({ exclude: [elmExclude] }, A11Y_OPTS);
});
});
});
14 changes: 7 additions & 7 deletions cypress/integration/a11y.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
*/

const A11Y_OPTS = {
runOnly: {
type: 'tag',
values: ['section508', 'best-practice', 'wcag21aa', 'wcag2aa'],
},
rules: {
runOnly: {
type: 'tag',
values: ['section508', 'best-practice', 'wcag21aa', 'wcag2aa'],
},
rules: {
'page-has-heading-one': { enabled: false },
},
};
Expand All @@ -22,7 +22,7 @@ context('Accessibility (a11y)', () => {
cy.injectAxe();
cy.wait(500);
// excludes accessibility testing for Elm pop-up that only appears in Cypress and not on the actual UI
cy.checkA11y({exclude: [elmExclude]}, A11Y_OPTS);
cy.checkA11y({ exclude: [elmExclude] }, A11Y_OPTS);
});
});

Expand Down Expand Up @@ -89,7 +89,7 @@ context('Accessibility (a11y)', () => {
cy.wait(500);
cy.clickSteps();
// excludes accessibility testing for Elm pop-up that only appears in Cypress and not on the actual UI
cy.checkA11y({exclude: [elmExclude]}, A11Y_OPTS);
cy.checkA11y({ exclude: [elmExclude] }, A11Y_OPTS);
});
});
});
2 changes: 1 addition & 1 deletion cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ Cypress.Commands.add('checkA11yForPage', (path = '/', opts = {}) => {
cy.injectAxe();
cy.wait(500);
// excludes accessibility testing for Elm pop-up that only appears in Cypress and not on the actual UI
cy.checkA11y({exclude: ['[style*="padding-left: calc(1ch + 6px)"]']}, opts);
cy.checkA11y({ exclude: ['[style*="padding-left: calc(1ch + 6px)"]'] }, opts);
});

Cypress.Commands.add('setTheme', theme => {
Expand Down
3 changes: 2 additions & 1 deletion src/scss/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ nav {
width: auto;
margin: 0;
padding: 0;

color: var(--color-black);

list-style-type: none;
Expand All @@ -200,7 +201,6 @@ nav {
padding: 1rem 1rem;

&:first-child {
//color: var(--color-offwhite);
padding-left: var(--horizontal-pad);
}

Expand All @@ -224,6 +224,7 @@ nav {
width: 1rem;

color: var(--color-offwhite);

background: var(--color-lavender);
transform: skew(-15deg);

Expand Down
2 changes: 1 addition & 1 deletion src/scss/_themes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ body.theme-light {
--color-bg-darkest: var(--color-gray-light);
--color-bg-dark: var(--color-gray-light);
--color-bg: var(--color-offwhite);
// --color-bg-light: var(--color-white);
// --color-bg-light: var(--color-white);
--color-bg-light: var(--color-bg-dark);

--color-text: var(--color-coal);
Expand Down

0 comments on commit cce19dc

Please sign in to comment.