Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

use of clientlibs

Avatar

Level 2

Can anyone give an efficient approach for inheritance in clientlibs?

Scenario is one clientlibs are having global level css and js , another can extend the global clientlibs and override the existing one and can add new CSS and JS based on the requirement.

1 Accepted Solution

Avatar

Correct answer by
Employee
3 Replies

Avatar

Level 10

Hi, 

You can define all you global CSS in a client lib [A] and you can use this as a dependencies for all other css files defined in clientlib [B]. If you want to override css classes defined in global [A] to your [B] you can do it..

These post talks about it:

Avatar

Community Advisor

for your use case, you can embed the global clientlib category and override the required classes and js in your clientlibs

Avatar

Correct answer by
Employee