Skip to content

Add attribute(s) to each generated style tag #16610

@phillipsheridan

Description

@phillipsheridan

I'd like to be able to add a custom attribute to each style tag with some sort of global config. I know the option is there for jss: https://cssinjs.org/jss-api/?v=v10.0.0-alpha.22#create-style-sheet

  • This is not a v0.x issue.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior 🤔

Should have a global config that will add a given style element attribute key and value to one or more generated style elements.

Current Behavior 😯

Does not have a global config that will add a given style element attribute key and value to one or more generated style elements.

Examples 🌈

I'd like to add the data-senna-track="temporary" to each style tag:

7-15-19

Context 🔦

We are using Liferay and it needs to know which style tags to remove on page navigation.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions