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

Class name issue #7789

Closed
StagnantIce opened this issue Aug 17, 2022 · 1 comment
Closed

Class name issue #7789

StagnantIce opened this issue Aug 17, 2022 · 1 comment

Comments

@StagnantIce
Copy link

Describe the problem

Sometimes i have class name in some variable, and I can't use svelte with that.
If it will be like variable, i can easy to navigate my css class in my IDE.

Describe the proposed solution


<script>
 import s from './my.css';
export let checked = true;
</script>

<div class:{s.myClassName}={$checked}></div>

Alternatives considered


<script>
 import s from './my.css';
export let checked = true;
</script>

<div class={{ s.myClassName: $checked }}></div>

Importance

would make my life easier

@Conduitry
Copy link
Member

Duplicate of #7294.

@Conduitry Conduitry closed this as not planned Won't fix, can't repro, duplicate, stale Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants