Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.
SOLVED

Extending Content Fragment datatype CSS

Avatar

Level 3

Is it possible to extend a content fragment datatype css? For example:

/libs/dam/cfm/admin/components/authoring/contenteditor/jsoneditor/clientlibs/cfeditor/css/jsonfield.less

And if yes, how do I programmatically extend it? I understand that I may have to create the folder structure under ui.apps/src/main/content/jcr_root is there an easy way to do this?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

You no need to extend

/libs/dam/cfm/admin/components/authoring/contenteditor/jsoneditor/clientlibs/cfeditor/css/jsonfield.less

 instead of create your own CSS with same clientlibs category and override CSS rules.

CSS rules precedence will help - https://jenkov.com/tutorials/css/precedence.html



Arun Patidar

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi,

You no need to extend

/libs/dam/cfm/admin/components/authoring/contenteditor/jsoneditor/clientlibs/cfeditor/css/jsonfield.less

 instead of create your own CSS with same clientlibs category and override CSS rules.

CSS rules precedence will help - https://jenkov.com/tutorials/css/precedence.html



Arun Patidar