sugarcube-3 icon indicating copy to clipboard operation
sugarcube-3 copied to clipboard

Custom HTML tags

Open tmedwards opened this issue 4 years ago • 2 comments

Consider using custom HTML tags within SugarCube's UI where appropriate. Meaning limited to areas where I'd be temped to use Shadow DOM if I could—i.e., various control wrappers mostly—and only to replace tags with no inherent semantic meaning of their own—e.g., <div> and <span>.

Reasoning

Replacing non-semantic tags with custom tags on a limited basis could serve various purposes:

  • Custom tags would have inherent semantic meaning—e.g., <sc-slider>, <sc-volume>, <sc-textbox>, etc.
  • Custom tags would bypass some user sloppiness with their own CSS selectors—only some, however.
  • Custom tags would allow certain other features to work easier—e.g., <br> to <p> conversion.

Thoughts?

tmedwards avatar Apr 19 '20 05:04 tmedwards