Skip to content

Commit

Permalink
Add font-size to html tag to make rem units "safe" (#2404)
Browse files Browse the repository at this point in the history
* safeguard rem units

* Create .changeset/popular-wasps-compare.md
  • Loading branch information
langermank committed Apr 4, 2023
1 parent e631273 commit ae9d71b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/popular-wasps-compare.md
@@ -0,0 +1,5 @@
---
"@primer/css": patch
---

Add `font-size` to `html` tag to make rem units "safe"
1 change: 1 addition & 0 deletions src/base/normalize.scss
Expand Up @@ -7,6 +7,7 @@
*/

html {
font-size: 16px; /* this can be removed when all of GitHub uses rem units */
font-family: sans-serif; /* 1 */
-ms-text-size-adjust: 100%; /* 2 */
-webkit-text-size-adjust: 100%; /* 2 */
Expand Down

0 comments on commit ae9d71b

Please sign in to comment.