Skip to content

Commit ce7b275

Browse files
author
Jade Pennig
committed
fix(static-input-font): update font size, weight, and color for ‘static input elements’
1 parent 01af2d6 commit ce7b275

File tree

5 files changed

+16
-5
lines changed

5 files changed

+16
-5
lines changed

design-tokens/salesforce-skin/font-size.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ global:
99
props:
1010
FORM_LABEL_FONT_SIZE:
1111
value: '.75rem'
12+
INPUT_STATIC_FONT_SIZE:
13+
value: '0.875rem'

design-tokens/salesforce-skin/font-weight.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ global:
99
- font-weight
1010
props:
1111
INPUT_STATIC_FONT_WEIGHT:
12-
value: '600'
12+
value: '400'
1313
TABS_FONT_WEIGHT:
1414
value: '700'
1515
comment: Use for active tab.

ui/components/input/base/_index.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@
270270
min-height: calc(#{$line-height-button} + 2px); // For IE
271271
font-size: $input-static-font-size;
272272
font-weight: $input-static-font-weight;
273+
color: $color-input-static;
273274

274275
// If read only state is longform
275276
// Apply text line height
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
global:
2+
type: color
3+
category: text-color
4+
cssProperties:
5+
- color
6+
- fill
7+
imports:
8+
- ../../../../design-tokens/color-palettes.yml
9+
props:
10+
COLOR_INPUT_STATIC:
11+
value: "{!PALETTE_GRAY_12}"
12+

ui/components/panels/detail/_index.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,4 @@
3838
&.slds-is-editing {
3939
box-shadow: $shadow-drop-down;
4040
}
41-
42-
.slds-form-element__static {
43-
font-weight: $font-weight-regular;
44-
}
4541
}

0 commit comments

Comments
 (0)