# WAIT: Using dynamic data in query loop for box shadow does not use the data-query-loop-index when setting the style

**URL:** <https://forum.bricksbuilder.io/t/wait-using-dynamic-data-in-query-loop-for-box-shadow-does-not-use-the-data-query-loop-index-when-setting-the-style/33322>\
**Category:** Bugs\
**Tags:** v1-12-3\
**Created:** [June 22, 2025, 3:33am UTC](https://forum.bricksbuilder.io/t/wait-using-dynamic-data-in-query-loop-for-box-shadow-does-not-use-the-data-query-loop-index-when-setting-the-style/33322 "2025-06-22T03:33:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tudorbarbu](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/t/4bbf92/32.png) [@tudorbarbu](https://forum.bricksbuilder.io/u/tudorbarbu)\
**Post date:** [June 22, 2025, 3:33am UTC](https://forum.bricksbuilder.io/t/wait-using-dynamic-data-in-query-loop-for-box-shadow-does-not-use-the-data-query-loop-index-when-setting-the-style/33322/1 "2025-06-22T03:33:28Z")

</div>

**Browser** : Chrome 137  
**OS** : Windows  
**URL** : [Link to a page that illustrates this issue](https://many-body.com/writings-practices)  
**Video** : Short screen recording that illustrates this issue (free tool: [jam.dev](https://jam.dev/))

I use ACF to add colors categories

The problem occurs when I use the {acf\_color} for the shadow element

 ![image](https://forum.bricksbuilder.io/uploads/default/original/3X/7/6/765bee1d7404c9631fa9cc39a3cce7cd17e2de65.png)

I have tried using them on the css class, but most likely do not work because classes are defined before loops execute, so they can’t use dynamic data. So the whole definition is on the component itself

As it can be seen in the inspector, the text and border use the data-query-loop-index selector while the box-shadow does not

 ![image](https://forum.bricksbuilder.io/uploads/default/original/3X/0/a/0a805d1098ed7be609148f26807e25561ed861b1.png)

---

<div class="post-metadata">

**Author:** ![timmse](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/timmse/32/1192_2.png) [@timmse](https://forum.bricksbuilder.io/u/timmse)\
**Post date:** [June 23, 2025, 6:51am UTC](https://forum.bricksbuilder.io/t/wait-using-dynamic-data-in-query-loop-for-box-shadow-does-not-use-the-data-query-loop-index-when-setting-the-style/33322/2 "2025-06-23T06:51:40Z")

</div>

Hi,  
Welcome to the forum, and thanks so much for your report!

I can’t replicate the issue in Bricks 2.0 RC, so please try it again using the current 2.0 RC version (available from your account). Let me know how it goes ✌

Best regards,  
timmse
