Although I dislike using ng-deep, it seems to be the only option available for my current situation.
In my project, I am implementing VMware Clarity modals (https://v1.clarity.design/modals) and there are instances where I need to customize the modal-body class. To achieve this, I have added the following code in my component.scss file:
::ng-deep .modal-body {
overflow-y: visible;
overflow-x: visible;
}
This customization works as intended. However, a new issue arises when opening other modals after applying the above styling. The customized styles affect all modals instead of just one. How can I restrict these styles to apply only to a specific modal?
I have been contemplating if there is a way to reset the custom style upon component destruction or what recommendations Angular has in such cases.