Closed josefaidt closed 3 years ago
Support using a custom prefix for CSS variables through a prefix prop on ThemeWrapper
prefix
ThemeWrapper
PREFIX
theme
Behavior:
prefix={"vendor"}
--vendor-...
prefix={null}
--...
prefix={""}
prefix={" "}
.trim()
Support using a custom prefix for CSS variables through a
prefix
prop onThemeWrapper
PREFIX
constant with value oftheme
in module scope of ThemeWrapperprefix
prop with defaultPREFIX
Behavior:
prefix={"vendor"}
, CSS variables will look like--vendor-...
prefix={null}
, CSS variables will look like--...
prefix={""}
, ThemeWrapper should throw an error "Invalid prefix string supplied"prefix={" "}
, ThemeWrapper should throw an error "Invalid prefix string supplied" (be sure to.trim()
prefix string)