Skip to content
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

styling open select #223

Closed
nosovk opened this issue Apr 19, 2024 · 5 comments
Closed

styling open select #223

nosovk opened this issue Apr 19, 2024 · 5 comments
Labels
documentation Improvements or additions to documentation

Comments

@nosovk
Copy link

nosovk commented Apr 19, 2024

We can pass a slot, that will be rendered as an item in a selected state, but I can't find how to pass a slot to style opened element. Is there some named slot or any other way to style elements in opened list?

@mskocik
Copy link
Owner

mskocik commented Apr 19, 2024

What do you mean by "opened element"? Is it option in dropdown? If yes, you can use <slot name="option>

What is missing from your point of view in docs?

@nosovk
Copy link
Author

nosovk commented Apr 19, 2024

My fault. It's there.
In common, the best is to put some example into renderer serction.
image
Like this, to show that list items could be customized.

@mskocik
Copy link
Owner

mskocik commented Apr 19, 2024

You mean like in the list on the right?
image

@nosovk
Copy link
Author

nosovk commented Apr 19, 2024

Yes, but from the screen above with red rectangles there is no clear what exactly is possible. Actually I got response from team-mate that it's not possible to render custom slot inside open slider, and after that opened ticked. (My fault that I didn't check it carefully). I think that my team mate browsed examples page, didn't find any one with custom slot, and probably go to conclusion that it's not possible (I will ask him to confirm that on monday. It would be nice just to extend example with colours, with additional block showing how it looks)

@mskocik
Copy link
Owner

mskocik commented Apr 19, 2024

So basically you mean something like this REPL should be in examples.

Documentation could be extended for sure. Slot usage may not be obvious. Unfortunately it's quite time-consuming process, which I don't enjoy that much and it's hard to judge what is not clear enough (author blindness).

@mskocik mskocik added the documentation Improvements or additions to documentation label Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants