Skip to content

Commit 815c4d8

Browse files
author
Jordan Hunt
committed
Align underlayColor with designs
1 parent 6f7f174 commit 815c4d8

File tree

7 files changed

+7
-4
lines changed

7 files changed

+7
-4
lines changed

styles/native/js/app/custom-variables.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ export const input = {
156156
selectionColor: contrast.lower,
157157
placeholderTextColor: contrast.regular,
158158
underlineColorAndroid: "transparent",
159+
inputContainerUnderlayColor: `rgba(${anyColorToRgbString(contrast.low)},0.4)`,
159160
// Sizes
160161
fontSize: font.size,
161162
fontFamily: font.family,

styles/native/js/core/variables.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ let input = {
156156
selectionColor: contrast.lower,
157157
placeholderTextColor: contrast.regular,
158158
underlineColorAndroid: "transparent",
159+
inputContainerUnderlayColor: `rgba(${anyColorToRgbString(contrast.low)},0.4)`,
159160
// Sizes
160161
fontSize: font.size,
161162
fontFamily: font.family,

styles/native/js/core/widgets/dropdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export const DropDown = {
7272
paddingVertical: 6,
7373
paddingHorizontal: 16,
7474
backgroundColor: input.backgroundColor,
75-
underlayColor: contrast.low,
75+
underlayColor: input.inputContainerUnderlayColor,
7676
},
7777
item: {
7878
// All TextStlye properties are allowed

styles/native/ts/app/custom-variables.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ export const input: VariablesInput = {
175175
selectionColor: contrast.lower,
176176
placeholderTextColor: contrast.regular,
177177
underlineColorAndroid: "transparent",
178+
inputContainerUnderlayColor: `rgba(${anyColorToRgbString(contrast.low)},0.4)`,
178179

179180
// Sizes
180181
fontSize: font.size,

styles/native/ts/core/variables.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ let input: VariablesInput = {
172172
selectionColor: contrast.lower,
173173
placeholderTextColor: contrast.regular,
174174
underlineColorAndroid: "transparent",
175+
inputContainerUnderlayColor: `rgba(${anyColorToRgbString(contrast.low)},0.4)`,
175176

176177
// Sizes
177178
fontSize: font.size,

styles/native/ts/core/widgets/dropdown.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export const DropDown: DropDownType = {
7676
paddingVertical: 6,
7777
paddingHorizontal: 16,
7878
backgroundColor: input.backgroundColor,
79-
underlayColor: contrast.low,
79+
underlayColor: input.inputContainerUnderlayColor,
8080
},
8181
item: {
8282
// All TextStlye properties are allowed

styles/native/ts/types/variables.d.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
Types
33
========================================================================== */
44

5-
import { badge, font } from "../app/custom-variables";
6-
75
declare type FontWeight = "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
86
declare type TextAlign = "auto" | "left" | "right" | "center" | "justify";
97
declare type TextTransform = "none" | "capitalize" | "uppercase" | "lowercase";
@@ -124,6 +122,7 @@ export interface VariablesInput {
124122
selectionColor: string,
125123
placeholderTextColor: string,
126124
underlineColorAndroid: string,
125+
inputContainerUnderlayColor: string,
127126

128127
fontSize: number,
129128
fontFamily: string,

0 commit comments

Comments
 (0)