I'm using Sitecore 9.1.1 and SXA 1.8.1.
I'm trying to set href data attribute to a Variant section in a rendering variant.
I tried to override the
RenderVariantField class as mentioned in the solution for this question and it worked and returned the correct value - but only when I use it inside a variant Field. However, when I use it inside a variant Section it returns nothing.
Any idea what I can add in order to read a data attribute inside a variant section?