Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EIUNAB-33645/Impact : Work with Teams to get the YAML into Backstage.io for all projects #2

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion a11y-report.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"total":2,"passes":1,"errors":3,"results":{"http://localhost:5000/good.html":[],"http://localhost:5000/bad.html":[{"code":"WCAG2AA.Principle2.Guideline2_4.2_4_2.H25.1.EmptyTitle","type":"error","typeCode":1,"message":"The title element in the head section should be non-empty.","context":"<title></title>","selector":"html > head > title","runner":"htmlcs","runnerExtras":{}},{"code":"WCAG2AA.Principle3.Guideline3_1.3_1_1.H57.3.Lang","type":"error","typeCode":1,"message":"The language specified in the lang attribute of the document element does not appear to be well-formed.","context":null,"selector":"","runner":"htmlcs","runnerExtras":{}},{"code":"WCAG2AA.Principle1.Guideline1_4.1_4_3.G18.Fail","type":"error","typeCode":1,"message":"This element has insufficient contrast at this conformance level. Expected a contrast ratio of at least 4.5:1, but text in this element has a contrast ratio of 2.77:1. Recommendation: change text colour to #fff.","context":"<p class=\"bad-contrast\">\n This page should fail acce...</p>","selector":"html > body > p","runner":"htmlcs","runnerExtras":{}}]}}
{"total":2,"passes":0,"errors":0,"results":{"http://localhost:5000/good.html":[{"message":"Pa11y timed out (30000ms)"}],"http://localhost:5000/bad.html":[{"message":"Pa11y timed out (30000ms)"}]}}
20 changes: 20 additions & 0 deletions catalog-info.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: backstage.io/v1beta1
kind: Component
metadata:
name: a11-y-testing-example
namespace: economist-impact
annotations:
github.com/project-slug: signal-noise/a11y-testing-example
# the circleCI project, mirrors github repo in this case:
circleci.com/project-slug: github/signal-noise/a11y-testing-example
# GUID - see https://docs.newrelic.com/docs/query-your-data/explore-query-data/dashboards/manage-your-dashboard/
newrelic.com/dashboard-guid: MzY1MjgxOXxWSVp8REFTSEJPQVJEfGRhOjE3MDkwOA
newrelic.com/dashboard-guid: MzY1MjgxOXxWSVp8REFTSEJPQVJEfGRhOjE5NTIyNw
description: covid-relative-risk for SignalNoise Economist Impact Project
opsgenie:
domain: https://economist.app.opsgenie.com/teams/dashboard/49177ca8-5e59-4364-af23-c22cc60c026f/main
backstage.io/techdocs-ref: dir:.
spec:
type: website
lifecycle: production
owner: group:economist-impact/enablement
8 changes: 8 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## In progress


This repo exist to demonstrate an approach to accesibility testing using Github actions and Pa11y for [an in progress RFC](https://github.com/signal-noise/rfcs/pulls)

HTML based on [HTML 5 boilerplate](https://html5boilerplate.com/)`

`npm run test`
5 changes: 5 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
docs_dir: docs
nav:
- Main: index.md
plugins:
- techdocs-core