Skip to content

Commit 197db60

Browse files
authored
fix(TextInput): placeholder color (#1120)
1 parent fc9a17e commit 197db60

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@cube-dev/ui-kit': patch
3+
---
4+
5+
Fix placeholder color in input recipes to use `#placeholder` token consistently

src/components/Root.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ configure({
8080
},
8181
},
8282
'input-placeholder': {
83-
'-webkit-text-fill-color': 'var(--placeholder-color, initial)',
84-
color: 'var(--placeholder-color, initial)',
83+
'-webkit-text-fill-color': '#placeholder',
84+
color: '#placeholder',
8585
},
8686
'input-search-cancel-button': {
8787
hide: true,

src/components/fields/TextInput/TextInput.stories.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,11 @@ export default {
160160
};
161161

162162
const Template: StoryFn<CubeTextInputProps> = (props) => (
163-
<TextInput {...props} onChange={(query) => console.log('change', query)} />
163+
<TextInput
164+
placeholder="Placeholder"
165+
{...props}
166+
onChange={(query) => console.log('change', query)}
167+
/>
164168
);
165169

166170
export const Default = Template.bind({});

0 commit comments

Comments
 (0)