I am more of an admin than a developer but I managed to get the SPFx Modern script editor to work in my tenant to facilitate some required cosmetic changes. Unfortunately it seems that the CSS classes and ids are being appended with a suffix that changes on each browser refresh.
What CSS trickery do I need use in the SPFX Modern script editor to select .content instead of .content-150 or ButtonCard root instead of ButtonCard root-151? In either example, if I create some css related to a class (or id) with these appended numbers it will break the next time I load the page because the number appended to the element changes.
Thanks for any help!
[class*="content-"]
. It only selects classes with that specific part of the naming convention. But it is going to select ALL classes with this naming convention, so you really want to drill down. w3schools.com/css/css_attribute_selectors.asp