You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using PrimeReact as a base for my UI-Library. I have been using Styled-Components to apply my theme, and have no problems doing simple elements like Buttons.
I run into the problem with Styled-Components when the elements are out of the document flow, as with Calendar Overlay component, and I cannot style them using class overrides like above as they are no longer direct children.
Has anyone figured out a way to style these items outside of the CreateGlobalStyles function?
Desired behaviour would be to have one Component encasing the entirety if the styling for itself, only using the theme as with button.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm using PrimeReact as a base for my UI-Library. I have been using Styled-Components to apply my theme, and have no problems doing simple elements like Buttons.
I run into the problem with Styled-Components when the elements are out of the document flow, as with Calendar Overlay component, and I cannot style them using class overrides like above as they are no longer direct children.
Has anyone figured out a way to style these items outside of the CreateGlobalStyles function?
Desired behaviour would be to have one Component encasing the entirety if the styling for itself, only using the theme as with button.
Beta Was this translation helpful? Give feedback.
All reactions