How can a CSS selector be made to target ARIA labels beginning with a given string?
For example, let’s say we have:
button[aria-label="Follow Abcdefghijk"] {}
and
button[aria-label="Message Abcdefghijk"] {}
Assume “Abcdefghijk” will be a different random string each time, that we have no control over. And we want the Follow button to be one color, and the Message button to be another. The only way to target the respective buttons is to use the beginning part of their ARIA label strings.