Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fix-placeholder-color.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@cube-dev/ui-kit': patch
---

Fix placeholder color in input recipes to use `#placeholder` token consistently
4 changes: 2 additions & 2 deletions src/components/Root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ configure({
},
},
'input-placeholder': {
'-webkit-text-fill-color': 'var(--placeholder-color, initial)',
color: 'var(--placeholder-color, initial)',
'-webkit-text-fill-color': '#placeholder',
color: '#placeholder',
},
'input-search-cancel-button': {
hide: true,
Expand Down
6 changes: 5 additions & 1 deletion src/components/fields/TextInput/TextInput.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,11 @@ export default {
};

const Template: StoryFn<CubeTextInputProps> = (props) => (
<TextInput {...props} onChange={(query) => console.log('change', query)} />
<TextInput
placeholder="Placeholder"
{...props}
onChange={(query) => console.log('change', query)}
/>
);

export const Default = Template.bind({});
Expand Down
Loading