Closed alejo4373 closed 3 years ago
Hi @alejo4373,
The 'id' is simply the title of that specific 'CSS Resource'.
So you could do something like id: "Blue border"
The # behind the checkbox isn't used for stying. I think it's more of a short-hand notation for ID. So changing it as mentioned above would give you something like:
#Blue border
<style>.tx-rte-with-border { border: 2px solid blue; }</style>
Thank you, @sander-v-bergen!
Also @sander-v-bergen, do you know by any chance how to add the CSSResources tab on a per story basis? Rn it shows on all of them but I only need it one. Thanks in advance!
Is it possible to have the
cssresource
use aclass
instead of anid
?I want to use storybooks to test if
className
prop is being passed and properly applied to a component by toggling the style that is being applied via a class css selector.The code below works, but I find it uncomfortable to use the
id
property in this way.And, it also looks off (
#.<classname>
) when renderedI was expecting to be able to use something like the following: (note
class
instead ofid
)