From 5dfacf084d6290bbbecbf88fe1ec2322d81253b1 Mon Sep 17 00:00:00 2001 From: Romaric Pascal Date: Tue, 24 Oct 2023 18:26:53 +0100 Subject: [PATCH 1/2] Add content of the draft of our browser support strategy to our docs Co-authored-by: Claire Ashworth --- docs/contributing/browser-support.md | 215 +++++++++++++++++++++++++++ 1 file changed, 215 insertions(+) create mode 100644 docs/contributing/browser-support.md diff --git a/docs/contributing/browser-support.md b/docs/contributing/browser-support.md new file mode 100644 index 0000000000..ebe33170fc --- /dev/null +++ b/docs/contributing/browser-support.md @@ -0,0 +1,215 @@ +# How we provide support for different browsers + +Users can access government services through a wide range of new to older browsers. Our components provide a baseline experience through HTML and CSS, allowing all users to complete their tasks even if JavaScript is not working. Some components have JavaScript enhancements which add extra features or fix accessibility issues. + +The Design System team needs to balance how we support older browsers using JavaScript enhancements due to: + +- engineering - for example, if a browser has an outdated APIs +- end-users (larger file sizes to download and run due to extra code for using the old APIs, or replicating features from newer APIs) + +## Browsers grades + +You can view [a summary of the grades and the support we provide on the GOV.UK Frontend site](https://release-5-0--govuk-frontend-docs-preview.netlify.app/browser-support/). To help manage the ever-growing number of browser versions, we group browsers into 4 grades: + +- **grade A** - Most recent stable versions of Chrome, Firefox, Edge, Samsung Internet and Safari +- **grade B** - All stable versions of Chrome, Firefox and Edge released in the last 6 months and the last 4 major stable releases of Safari which are not supported in Grade A +- **grade C** - [All browsers that support