Skip to content

Commit

Permalink
Add support for Dynamic Type in iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Nov 15, 2024
1 parent 4f7c92f commit ad4ac55
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 15 additions & 0 deletions src/nationalarchives/utilities/_reset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ad4ac55

Please sign in to comment.