-
-
Notifications
You must be signed in to change notification settings - Fork 860
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
active-base part for tabs #885
Comments
I guess using |
@Buni48 Oof - this was painful. Never mind - sorry to waste anyone's time. This is obviously the right way to do this. |
@bunesk found this because I was having issues with the same and this:
no longer works. Anyone have any ideas how I can target only the active state? I've tried just about everything I can throw at it. |
@qbunt I tried it again with the current shoelace version and it seems to work fine. See here: |
@bunesk I thought this wasn't working because of usage inside It's probably worth mentioning this syntax in the docs, I'm a newcomer to Shoelace and it was almost impossible to find if it wasn't for this issue, I'll put together a PR |
What issue are you having?
I've like to change the cursor of tab headers which are active
Describe the solution you'd like
Tab headers already have a part of
base
, but it turns out you cannot chain class selectors onto part selectors, sodoes nothing.
w3c/csswg-drafts#3431
BUT you can have more than one part on an element. Would it be possible to get something like active-base be added to the tab header which is currently active? That would allow users to target it, without also targeting non-active tabs.
So basically, whatever code is toggling the
.tab--active
class, would also toggle a newactive-base
part.Describe alternatives you've considered
I'd like to just select off of css classes you already have, but that's not possible. For good reasons, admittedly. Those css classes are an implementation detail.
The text was updated successfully, but these errors were encountered: