- Issue created by @dcine
- πͺπΈSpain dcine
I haven't been able to fix this situation, but I have found a solution to make the CSS work without problems. I'm posting the solution here in case it might be helpful to another user:
If, for example, one of the terms/links/filters has the following ID:
edit-platform-16404
For the CSS to apply in any situation (whether the ID has a suffix or not), you must add the following to your CSS:
a#edit-platform-16405, a[id*="16405"]
Do this for each of the links/terms in the filters.
I hope this helps someone so they don't have to spend as many hours as I did... - πΊπΈUnited States smustgrave
Believe this is by design
'id' => Html::getUniqueId('edit-' . implode('-', [$name, $optionValue])),
Not sure this is fully a bug nor do I think we can change it without BC concerns.
- πΊπΈUnited States smustgrave
Thinking out loud maybe a better class can be added though? Since my understanding using ID as selectors triggers stylelint issues usually.
- πͺπΈSpain dcine
Well, I don't know for sure, but I tried a thousand ways and couldn't find a better solution. Nothing I tried with CSS worked except the solution I showed.