I am facing a challenge with a button that is generated by a library (specifically the ngx-bootstrap accordion component) and I do not have direct access to it in my HTML file. Despite being able to inspect the element using Chrome's Inspector, any CSS modifications I attempt through the copied CSS path does not take effect. The button has a btn-link class, and my goal is to change its color to red by targeting it using .accordion-toggle>btn-link { color: red; }.
One solution I am considering is adding a custom class to all elements that match .accordion-toggle>btn-link, such as .my-custom-class, using TypeScript or JavaScript. This way, I can apply the desired changes to my custom class instead.
Is this method of adding a custom class the only way to effectively override Bootstrap styling?