Skip to content

Commit d08e33c

Browse files
fix(font-size): Backport #3832 to fix regression on body font size (#3845)
* fix(font-size): Backport #3832 to fix regression on body font size * Fix version in config
1 parent ea6eee0 commit d08e33c

File tree

6 files changed

+25
-3
lines changed

6 files changed

+25
-3
lines changed

RELEASENOTES.general.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
<!-- Release notes authoring guidelines: http://keepachangelog.com/ -->
22
<!-- On release, add general notes here. In time the legacy relase notes will be add to this -->
3+
## 2.9.3 - May 24, 2019
4+
5+
## Fix
6+
7+
- Fix `font-size` of `body` to adjust when on a touch-enabled device
8+
39
## 2.9.2 - May 7, 2019
410

511
## General

RELEASENOTES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
<!-- Release notes authoring guidelines: http://keepachangelog.com/ -->
22
<!-- !!! THIS FILE IS AUTO-GENERATED !!! DO NOT EDIT THIS FILE MANUALLY !!! -->
33

4+
## Release 2.9.3 - May 24, 2019
5+
6+
## Fix
7+
- Fix `font-size` of `body` to adjust when on a touch-enabled device
8+
49
## Release 2.9.2 - May 7, 2019
510

611
## General

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "design-system",
33
"description": "Salesforce Lightning Design System",
4-
"version": "2.9.2",
4+
"version": "2.9.3",
55
"author": "Salesforce",
66
"slds": {
77
"name": "Summer ’19",

ui/dependencies/_layout.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@
5353
}
5454
}
5555

56+
// Touch-enabled devices without hover
57+
@mixin touch-device {
58+
@media (pointer: coarse) and (hover: none) {
59+
@content;
60+
}
61+
}
62+
5663
// Wrapping Helper
5764
@mixin flex-wrap($wrap: true) {
5865
@if $wrap {

ui/dependencies/_root.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,9 @@
1717
#{$body} {
1818
font-size: $font-size-3;
1919
background: transparent;
20+
21+
@include touch-device {
22+
font-size: $font-size-5;
23+
}
2024
}
2125
}

0 commit comments

Comments
 (0)