Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

CSS changes not reflicting inside the Modal

GhitaB
Tera Contributor

i'm trying to style one message inside a modal pop up in the service scriptbut seems like the changes are not reflicting

CUSTOM_MESSAGE:"<p class='custom-msg' please use this <a href='google.com'>Link</a></p>",

and in the controller this is what i have:

	var modalParam = {
			message: $sce.trustAsHtml($scope.data.i18n.CUSTOM_MESSAGE_ISOLV),
			
		};

 

.custom-msg {
color: red !important;
}

 

how can i let the changes to be visible on the modal.

5 REPLIES 5

GhitaB
Tera Contributor

i ve tried it but it didn t work as well