Closed sovietspaceship closed 1 month ago
Hi,
Customization options are intentionally excluded from the project, as the goal is to adapt to the VSCode UI rather than offer flexible customizability. What I recommend is stylizing a native textarea like this: https://github.com/vscode-elements/elements-lite/blob/main/lib/components/textfield/textfield.css That's why I created the Elements Lite project. (It's not complete, textarea is not ready yet.) Honestly, does a textarea web component provide any added value?
Meanwhile the textarea css has been done. https://github.com/vscode-elements/elements-lite/tree/main/lib/components/textarea
See https://developer.mozilla.org/en-US/docs/Web/CSS/::part.
My use case is being able to apply custom styling from outside a component.
This would enable stuff like:
The implementation would look something like:
The reason ::part is required is that these examples won't work:
including a potential solution to allow passing custom classes
due to
textarea
living within thevscode-textarea
shadow DOM.I'd create a PR myself, but as this requires updating several components as well as the documentation I'd like to know your opinion on this before committing to it.