-
Notifications
You must be signed in to change notification settings - Fork 187
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
V3 - how to style input and selected item wrapper? #51
Comments
containerStyles prop not enough? |
I don't think I can modify the default styles of the input or the various wrappers. For instances I am trying to make the select a bit small (less padding, less height, smaller font) but there are styles which set the height with no mechanism to override |
Yeah, it's not really possible at the moment without implementing CSS variables for most of the styles. You can always fork the repo and change the styles. Not ideal I know. I'll have a think. |
Couldn't just all styles be moved to Item, Selection, MultiSelection components, with some additional props (like SelectedValue for Item) passed down. That way if someone wanted to use custom styles, they would just define them in their own components. I think the optimal solution would be this feature. Then these component-type props wouldn't be required at all. Works very well with UI libaries, like in React. |
I made a PR a while ago that makes this a bit easier. #41 It’s for v2 though and still requires custom components. |
Maybe a combo of @subpx's PR and adding CSS vars would cater for most use-cases and not break Svelte's CSS optimisation? |
@subpx @dontwork @hajnalbendeguz what you think of CSS var options in 2.1.0-beta.0? |
I've updated repl for Svelte 3.6.3+ changes |
Hi the input and the wrapper about the Selection component seem to be prohibiting styling. Is there a specific way I should look to do this?
The text was updated successfully, but these errors were encountered: