Error from the snippet in a Retool doc!

Here is the page from the Retool docs:

and here is the screenshot of the exact snippet we have tried:
Screenshot 2024-11-01 at 14.11.54
We enter this in and get. 'CSS syntax error' which is really vague
Please advise, we have followed the document intructions to the letter
Thanks

Looks like that Retool doc example has an errant semicolon at the end. Remove that and you should be good!

Here's a short example in the Custom CSS App Settings of one of our apps, with value and resulting preview:

correct syntax:
Screenshot 2024-11-01 at 1.33.20 PM
Screenshot 2024-11-01 at 1.33.30 PM

bad syntax (with trailing semi-colon):
Screenshot 2024-11-01 at 1.33.35 PM
Screenshot 2024-11-01 at 1.33.38 PM

Hey @peter.b and @dguzzo, thanks for flagging this. We'll get our docs updated. Apologies for the typo and any friction this caused!

1 Like