-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix(dependencies/chip): latest input dependencies and new styling for the chip tested #151
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,9 +82,44 @@ const css = html` | |
.textProperty=${'text'} | ||
.value=${colors[0]} | ||
></cosmoz-autocomplete> | ||
`; | ||
`, | ||
contourStyling = () => html` <style> | ||
cosmoz-autocomplete { | ||
--cosmoz-input-border-radius: 4px; | ||
--cosmoz-input-padding: 8px 0; | ||
--cosmoz-input-label-width: auto; | ||
--cosmoz-input-no-placeholder-label-bg: white; | ||
--cosmoz-input-label-padding: 0; | ||
--cosmoz-input-line-display: none; | ||
--cosmoz-input-contour-size: 1px; | ||
--cosmoz-input-background: white; | ||
--cosmoz-autocomplete-chip-border-radius: 4px; | ||
} | ||
cosmoz-autocomplete::part(input-control) { | ||
margin: 0 8px; | ||
} | ||
cosmoz-autocomplete::part(chip-clear) { | ||
margin-left: 4px; | ||
} | ||
Comment on lines
+98
to
+103
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think you should expose these as css variables: |
||
</style> | ||
<cosmoz-autocomplete | ||
.label=${'Choose color'} | ||
.source=${colors} | ||
.limit=${5} | ||
.textProperty=${'text'} | ||
.value=${colors[0]} | ||
contour | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is up with this |
||
></cosmoz-autocomplete>`; | ||
|
||
export { basic, single, hideEmpty, defaultIndex, disabled, placeholder }; | ||
export { | ||
basic, | ||
single, | ||
hideEmpty, | ||
defaultIndex, | ||
disabled, | ||
placeholder, | ||
contourStyling, | ||
}; | ||
|
||
export const overflown = () => html` ${css} | ||
<cosmoz-autocomplete | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
inputParts
gets set on<cosmoz-input [..] exportparts=${inputParts}
, but the parts you have added to the list are not part ofcosmoz-input
. This change has no effect.