-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Standalone uiLibrary in an external project #2698
Comments
The rendered output makes it look like you are using different LESS compiling rules in your webpack. The built-in rules of enact, that allow the style system to work leverages an obscure feature that retains Some explanation about this conclusion: those |
@vimalkodoth Were you able to resolve this issue? |
@vimalkodoth were you able to run ui library in an external project? I'm also trying to use the UI library in a plain react app but somehow it gives a hook error. |
Close this issue as no further discussion. Please create an issue again if necessary. |
Category
Description
When the standalone unstyled ui Library is added to the non-enact external project, the components do not work as expected.
I'm trying to use the ProgressBar component of uiLibrary inside my project. Upon rendering, the component does not inject custom classes to the component.
Environment
Enact version:
"@enact/ui": "^3.2.5"
Reproduction Code
import css from "./App.module.less";
<ProgressBar
progress={0.5}
backgroundProgress={0.75}
css={{
progressBar: css.customProgressBar,
fill: css.customProgressBarFill
}}
/>
Comments and Screen Shots
It renders as below.
<div role="progressbar" class="progressBar horizontal" style="--ui-progressbar-proportion-start-background:0; --ui-progressbar-proportion-end-background:0.75; --ui-progressbar-proportion-start:0; --ui-progressbar-proportion-end:0.5;"><div><div></div><div></div></div></div>
The text was updated successfully, but these errors were encountered: