Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Support global styles - Allow multiple top-level style tag declarations with different attributes #2762

Copy link
Copy link
Closed
@btakita

Description

@btakita
Issue body actions

There are a couple of plugins that support globally scoped style tags.

https://www.npmjs.com/package/svelte-preprocess-css-global

https://www.npmjs.com/package/@ctx-core/sass

This naturally leads to the pattern to have both a global & a non-global style block for a component.

<style type=text/scss global>
</style>
<style type=text/scss>
</style>
<style type=text/css>
</style>

Unfortunately, Svelte gives an error You can only have one top-level <style> tag per component. Since there is some usage of global style tags, along with a rfc, it's time to modify this requirement if there are <style> tags with different attributes.

thgh, itswillta, vmohir, khorpy, wc-matteo and 7 moreo-t-w, itswillta, swyxio and vizoitswillta, swyxio and vizo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.