Hi I am trying to figure out how to add an area-expanded="true" only for the first result. Using the $index==0 just cant figure oiut how to code this properly Below is my example
What is area-expanded used for?
In Bootsrap 4 there is an aria-expanded attribute which is used for accessibility (screen readers) and has nothing to do with how the tabs atually function.
f@@#$k you are right, this is added form the browser when debugging. So the issue is somewhere else in the repeat. Because only one should be expanded and while inspecting al tabs have this attribute=true Thank you!!
The aria-expanded thing has no effect on how tabs work. Even if you remove it - it won’t change anything. This is useful for accessibility (screen readers).
Cool thank you. I will try to find where the issue comes from, because all the rest is rendered ok. I am missing a tiny detail that breaks the functionality. Thank you!
Well as they say in Greek, he who is in a hurry falls down, the issue was from copying and pasting code. I was passing inside the id of the elements the # too.