-
Notifications
You must be signed in to change notification settings - Fork 38
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
Is there a way to avoid to use !important
CSS mode?
#38
Comments
Could you clarify? <div
- class="multiselect {outerDivClass}"
class:readonly
class:single={maxSelect == 1}
class:open={showOptions}
+ class="multiselect {outerDivClass}"
on:mouseup|stopPropagation={() => setOptionsVisible(true)}
use:onClickOutside={() => setOptionsVisible(false)}
use:onClickOutside={() => dispatch(`blur`)}
> |
I mean after all others. |
I just noticed that Svelte always applies the conditional classes last, no matter in what order I specify them. So now I'm not sure if this issue is actually solved and if not, how it can be solved. <MultiSelect
id="fav-web-tool"
options={webFrameworks}
bind:selectedLabels={selectedWeb}
bind:activeOption={activeWeb}
maxSelect={6}
{placeholder}
{filterFunc}
liActiveOptionClass="foobar"
/> @frederikhors Will release a new version tomorrow. Perhaps you can let me know if this problem persists. |
Ok. I'll try ASAP. |
Pleas re-open it. |
I just released v3.3.0 with all the changes we discussed. Let me know how it works for you. |
I will try in a few hours. |
I tried with the |
@frederikhors doesn't it work to be more specific in the css, for instance adding a class in your statements that is outside the svelte component? |
Yep maybe. But I need to try, and I cannot right now. |
@frederikhors Have you had a chance to try @egdegauperaa's suggestion? If so does it help? |
We can close. I don't have time right now. I'll re-open if this is still an issue. Thanks both. |
Is there a way to avoid to use
!important
CSS mode?Can we move
outerDivClass
to the end?I need my css classes to override yours.
Am I wrong?
The text was updated successfully, but these errors were encountered: