Skip to content

Commit 986457d

Browse files
committed
apply specific color to placeholders
1 parent beb224e commit 986457d

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

packages/@react-spectrum/s2/src/Field.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,10 @@ export const Input = forwardRef(function Input(props: InputProps, ref: Forwarded
231231
className={UNSAFE_className + mergeStyles(style({
232232
padding: 0,
233233
backgroundColor: 'transparent',
234-
color: 'inherit',
234+
color: {
235+
default: 'inherit',
236+
'::placeholder': 'gray-600'
237+
},
235238
fontFamily: 'inherit',
236239
fontSize: 'inherit',
237240
fontWeight: 'inherit',

packages/@react-spectrum/s2/src/TextField.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,10 @@ function TextAreaInput() {
201201
minHeight: controlSize(),
202202
boxSizing: 'border-box',
203203
backgroundColor: 'transparent',
204-
color: 'inherit',
204+
color: {
205+
default: 'inherit',
206+
'::placeholder': 'gray-600'
207+
},
205208
fontFamily: 'inherit',
206209
fontSize: 'inherit',
207210
fontWeight: 'inherit',

0 commit comments

Comments
 (0)