inputs icon indicating copy to clipboard operation
inputs copied to clipboard

Expose CSS namespace

Open mootari opened this issue 4 years ago • 0 comments

The CSS namespace placeholder __ns__ is currently replaced via rollup, but the replacement value is not exposed anywhere. In order to write custom CSS that targets the library's widgets, one has to first retrieve the scope via the following awkward snippet:

Inputs.text().classList[0]

Suggested solution: Expose the scope via a readonly property or getter e.g. Inputs.namespace, Inputs.ns or Inputs.scope.

mootari avatar Dec 05 '21 10:12 mootari