Change Alert Button color based on ts variable

I pull user settings including colors from the database and store the hex value in variables. I’ve been able to pretty easily manipulate most of the users content using Renderer and Element Ref, however I haven’t been able to figure out how to change the color of the ionic alert button a similar way. I understand you can apply dynamic classes to the alert box, however I guess I need to change the class property based on the users setting.