Open hituro opened 1 year ago
The next minor release of Twine will include an Electron version bump, FWIW. I would target latest available when that happens.
Hello @klembot ,
While my friend and I were trying to fix this issue, we found in the Twine documentation that the HTML output of passagedata
already has tags
attribute. Does it mean that this issue can be closed without doing anything?
@rubynguyen1510 You have misunderstood the issue. This is not about placing an attribute on the exported HTML, but on the actual editor window when using Twine.
Is your feature request related to a problem? Please describe.
Now that we have
user.css
I'd love to be able to style my passages differently based on their tags, but sadly that data isn't represented anywhere on the html structure.Describe the solution you'd like.
Add a
data-tags
attribute to thepassage-card
element with a space separated list of passage tags so that customuser.css
can target them.Describe alternatives you've considered.
I tried using
:has()
to target a passage based on the colour of its tags, but Electron 18 doesn't support:has()
so that's out.Additional context on this suggestion.
No response
Presubmission checklist