From ad4ac551fd264a0075efbb3f6c35f71b63ade00c Mon Sep 17 00:00:00 2001 From: Andrew Hosgood Date: Fri, 15 Nov 2024 10:23:39 +0000 Subject: [PATCH] Add support for Dynamic Type in iOS --- CHANGELOG.md | 3 +++ src/nationalarchives/utilities/_reset.scss | 15 +++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0dd89693..6de02cbf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased](https://github.com/nationalarchives/tna-frontend/compare/v0.2.18...HEAD) ### Added + +- Added support for the Dynamic Type setting in iOS, allowing users to change the default font size + ### Changed ### Deprecated ### Removed diff --git a/src/nationalarchives/utilities/_reset.scss b/src/nationalarchives/utilities/_reset.scss index 4a05186f..945e61b1 100644 --- a/src/nationalarchives/utilities/_reset.scss +++ b/src/nationalarchives/utilities/_reset.scss @@ -14,6 +14,21 @@ } } +/* + * ------------------------------------------ + * If the browser supports -apple-system-body + * which at the moment is just iOS then using + * the system body font we can respond to the + * Dynamic Type setting in iOS + * ------------------------------------------ + */ +@supports (font: -apple-system-body) { + html { + /* stylelint-disable-next-line font-family-no-missing-generic-family-keyword */ + font: -apple-system-body; + } +} + img, svg, picture,