Goal: I am trying to create shadows around my containers in my app. I have found a way to do it using custom css, but when I preview the app, all my custom css edits are not shown.
Details: Here is an example of my custom css code:
For context, my container has so many edits because the grid was a bit limiting (I struggled to get a nice layout with the built in grid for the main window). My second question relates to this. How do I make the charts in my containers automatically adjust to the container's size? I've tried using flex but that does not work.
Hi WMulaudzi & welcome to the Retool community forum!
Would you be able to confirm a few things for me first so that I can get more context on the issue?
For your custom CSS, make sure it's correctly applied in the Custom CSS section found by clicking on the gear icon in the App IDE.
Check that you're using valid selectors based on Retool's unique naming convention, like _retool-textInput1 for a 'textInput1' component.
Hi there!
Are you currently seeing any changes reflected at all? We typically recommend this format over using the data-set but I am curious to know what changes you are successfully seeing and which ones you are not? If you could provide that context it would be super helpful!
I am not seeing any custom css output in preview mode even with the custom css code I showed you. I can see the changes in editor mode though, just not when I click preview.
Hey WMulaudzi,
When you are typing your css selector use the format of ._retool-nameOfComponent. Please look at the screen shot below to see how I am able to change the buttons font and box shadow.