OiO.lk Blog CSS After updating to Angular 18 and Material, the method for applying CSS has changed
CSS

After updating to Angular 18 and Material, the method for applying CSS has changed


I created a custom component by extending MatCheckbox.

Before the update, I was able to apply the default CSS using:

scss

@use '@material/checkbox/mdc-checkbox';

However, after upgrading Angular and Material to version 18, @use ‘@material/checkbox/mdc-checkbox’; no longer exists. What is the recommended alternative to achieve the same functionality?



You need to sign in to view this answers

Exit mobile version