-
Notifications
You must be signed in to change notification settings - Fork 11
SDP Componenet bar #35
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
base: development
Are you sure you want to change the base?
SDP Componenet bar #35
Conversation
|
As chakra is also using styled-components ... so you could get rid of the css files ( packages/sdkComponent/src/assets/Css/Component.css). You are already using styled components elsewhere. Also just to point out... if you need to use !important in css, there is most likely something else wrong in component logic. Typically this shows the need of props configuration... Basically components should never use "!important" as it is then blocking override, when component is actually used. |
Hiii @tro9999 , I removed the css and commited a fresh code.Kindly have a look . |
|
Code looks ok now. Perhaps could from/to range checks and throw error, if invalid range. Also if other similar checks come to your mind, those would be good. |
|
One new thing.... you could also think of creating logic for using own theme... |
|
You missed this.... "Change .jsx to .js.... so the default webpack config would work for building module." Also the ThemeProvider should not be in component as it is HOC component. What I suggested.... "The theme should be created so it is possible to use with other components. Typically there is so called core package, which has own theme and other common components and utilities." |
No description provided.