I'm having some trouble applying styling within each of the options in the drop-down for the matching component. I see a lot of toString() conversions that occur in select2.js. Has anyone tried to, for example, apply subscript html tags to numbers in chemical names in one of these options?
Funny you should mention this, we've just been discussing this component in the Adapt weekly standup and have decided to drop Select2 as it's
- pretty much impossible to make accessible to the new standard we're aiming for with Adapt v4
- horrible to style (as you've discovered)
If you can wait a few weeks we're hoping to have the new version ready to go fairly soon...
Thanks. Not sure the update will be ready in time for this project, but we found a workaround with the text content. Looking forward to the update for future projects, though.
OK, stretching the definition of 'a few weeks' ever so slightly - but the new 'no select2' version of matching has now been released.