Skip to content

Commit

Permalink
fix(contour-chip): centered input and fixed spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
CarloBar1 committed Mar 5, 2024
1 parent ddd74d7 commit f5b3045
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/autocomplete/autocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type AProps<I> = Omit<Props<I>, keyof RProps<I>> &

const blank = () => nothing;

const inputParts = ['input', 'control', 'label', 'line', 'error']
const inputParts = ['input', 'control', 'label', 'line', 'error', 'chip', 'chip-text', 'chip-clear']
.map((part) => `${part}: input-${part}`)
.join();

Expand Down
7 changes: 5 additions & 2 deletions stories/cosmoz-autocomplete.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,14 @@ const css = html`
cosmoz-autocomplete::part(input-control) {
margin: 0 8px;
}
cosmoz-autocomplete::part(chip-clear) {
margin-left: 4px;
}
</style>
<cosmoz-autocomplete
.placeholder=${'Choose color'}
.label=${'Choose color'}
.source=${colors}
.limit=${1}
.limit=${5}
.textProperty=${'text'}
.value=${colors[0]}
contour
Expand Down

0 comments on commit f5b3045

Please sign in to comment.