Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Couldn't access styling of selected option. #1968

Closed
NilsJacobsen opened this issue Apr 10, 2024 · 0 comments
Closed

Couldn't access styling of selected option. #1968

NilsJacobsen opened this issue Apr 10, 2024 · 0 comments
Labels
bug Things that aren't working right in the library.

Comments

@NilsJacobsen
Copy link

NilsJacobsen commented Apr 10, 2024

Describe the bug

I use the sl-select with sl-option. I export the part base of option, to have access to the styling, but I can only style the normal background color and hover color. Of course there is no way to style the selected state, because I can't use further selectors after I used the part api.

image
image

This gives me the weird behaviour of overriding the select styles.

Is there a workaround or an other way of doing this?

Thanks, folks :)

@NilsJacobsen NilsJacobsen added the bug Things that aren't working right in the library. label Apr 10, 2024
@shoelace-style shoelace-style locked and limited conversation to collaborators Apr 10, 2024
@claviska claviska converted this issue into discussion #1969 Apr 10, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
bug Things that aren't working right in the library.
Projects
None yet
Development

No branches or pull requests

1 participant