We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Issue setting CssClass property (20.3)


When setting CssClass​ property is set, it's set to both backdrop and the modal itself.

for example if I set CssClass​ to w-50, it is set to both which will reduce the size of the backdrop as well. this worked in 20.2.

Please refer to the following repo for repro.


1 Reply

VY Vinothkumar Yuvaraj Syncfusion Team October 26, 2022 11:48 AM

Hi MiVision,

We have provided support for customize the dialog buttons using a custom class name after version. So, we have included a custom class name in all our dependent components. If you wish to apply styles to a particular dialog element, you can add a custom class name with corresponding elements like the below code.



<SfDialog @ref="_dlg" CssClass="custom-class">…





       width: 50%;



Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/SyncfusionDialogIssue-main-1988965302



Live Chat Icon For mobile
Up arrow icon