generated from nhcarrigan/template
fix: resolve CSP and accessibility issues
- Allow inline styles in CSP for Angular component encapsulation - Hide skip-to-main-content link using screen-reader-only pattern - Add JavaScript handler for skip link to work across all routes - Add eslint-disable comments for intentional design choices
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* @copyright 2026 NHCarrigan
|
||||
* @copyright 2026 NHCarrigan
|
||||
* @license Naomi's Public License
|
||||
* @author Naomi Carrigan
|
||||
*/
|
||||
|
||||
import { getGreeting } from "../support/app.po";
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
/**
|
||||
* @copyright 2026 NHCarrigan
|
||||
* @copyright 2026 NHCarrigan
|
||||
* @license Naomi's Public License
|
||||
* @author Naomi Carrigan
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* Gets the greeting element from the page.
|
||||
* @returns A Cypress chainable to the h1 element.
|
||||
*/
|
||||
export const getGreeting = (): Cypress.Chainable => {
|
||||
return cy.get("h1");
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* @copyright 2026 NHCarrigan
|
||||
* @copyright 2026 NHCarrigan
|
||||
* @license Naomi's Public License
|
||||
* @author Naomi Carrigan
|
||||
*/
|
||||
|
||||
/// <reference types="cypress" />
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
* @license Naomi's Public License
|
||||
* @author Naomi Carrigan
|
||||
*/
|
||||
/* eslint-disable unicorn/prevent-abbreviations -- e2e is a standard Cypress filename */
|
||||
|
||||
/**
|
||||
* This example support/e2e.ts is processed and
|
||||
|
||||
Reference in New Issue
Block a user