# \[BUG\] Perspective - Using Perspective Style with Alarm status table rowStyles background-color style doesn't work unless animated

**URL:** <https://forum.inductiveautomation.com/t/bug-perspective-using-perspective-style-with-alarm-status-table-rowstyles-background-color-style-doesnt-work-unless-animated/47587>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [June 9, 2021, 2:50am UTC](https://forum.inductiveautomation.com/t/bug-perspective-using-perspective-style-with-alarm-status-table-rowstyles-background-color-style-doesnt-work-unless-animated/47587 "2021-06-09T02:50:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [June 9, 2021, 2:50am UTC](https://forum.inductiveautomation.com/t/bug-perspective-using-perspective-style-with-alarm-status-table-rowstyles-background-color-style-doesnt-work-unless-animated/47587/1 "2021-06-09T02:50:55Z")

</div>

v8.1.5

I have a style that just has the background-color style set to a colour, and this style is applied to e.g.  
`this.props.rowStyles.activeAcked.priorities.high.classes`

The background colour style doesn’t do anything. However if I change the Perspective style to animated and set the two keyframes to the same thing, then the alarm rows show with the correct background colour 🤔

This (unanimated) _ **doesn’t** _ change the background colour, font size _is_ changed (testing if _any_ style works):  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/3/236542b71e9ffeebc147a40267892bf9cd390ce7.png)

This _ **does** _ change the background colour:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/6/06adcf2e69b2e6d42b00ec1251c2d3ce48254845.png)

---

<div class="post-metadata">

**Author:** ![brandon1](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@brandon1](https://forum.inductiveautomation.com/u/brandon1)\
**Post date:** [October 29, 2021, 2:57pm UTC](https://forum.inductiveautomation.com/t/bug-perspective-using-perspective-style-with-alarm-status-table-rowstyles-background-color-style-doesnt-work-unless-animated/47587/2 "2021-10-29T14:57:40Z")

</div>

I can confirm this problem still exists in 8.1.10. Are there any plans to fix this??

---

<div class="post-metadata">

**Author:** ![csjohnson](https://avatars.discourse-cdn.com/v4/letter/c/5f8ce5/32.png) [@csjohnson](https://forum.inductiveautomation.com/u/csjohnson)\
**Post date:** [October 21, 2022, 8:35pm UTC](https://forum.inductiveautomation.com/t/bug-perspective-using-perspective-style-with-alarm-status-table-rowstyles-background-color-style-doesnt-work-unless-animated/47587/3 "2022-10-21T20:35:00Z")

</div>

Bug still present in 8.1.20  
Please fix.

---

<div class="post-metadata">

**Author:** ![marcelo.amorim](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@marcelo.amorim](https://forum.inductiveautomation.com/u/marcelo.amorim)\
**Post date:** [February 24, 2023, 9:33am UTC](https://forum.inductiveautomation.com/t/bug-perspective-using-perspective-style-with-alarm-status-table-rowstyles-background-color-style-doesnt-work-unless-animated/47587/4 "2023-02-24T09:33:40Z")

</div>

My band aid fix is to have a script in the start up of the component to clear all background colors. It seems like the bug is when the component first starts up it uses its default backgroundColor values and it overrides any classes that you have defined.  
This way you dont need to animate it, it should work with any "static" style class that changes the background color

Bug still there on 8.1.25  
See below:

```auto
def runAction(self):
	self.getChild("AlarmStatusTable").props.rowStyles.activeUnacked.base.backgroundColor = ""
	self.getChild("AlarmStatusTable").props.rowStyles.activeUnacked.priorities.low.backgroundColor = ""
	self.getChild("AlarmStatusTable").props.rowStyles.activeUnacked.priorities.medium.backgroundColor = ""
	self.getChild("AlarmStatusTable").props.rowStyles.activeUnacked.priorities.high.backgroundColor = ""
	self.getChild("AlarmStatusTable").props.rowStyles.activeUnacked.priorities.critical.backgroundColor = ""

```

---

<div class="post-metadata">

**Author:** ![wbaker](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/wbaker/32/85315_2.png) [@wbaker](https://forum.inductiveautomation.com/u/wbaker)\
**Post date:** [April 8, 2024, 3:10pm UTC](https://forum.inductiveautomation.com/t/bug-perspective-using-perspective-style-with-alarm-status-table-rowstyles-background-color-style-doesnt-work-unless-animated/47587/5 "2024-04-08T15:10:33Z")

</div>

I'm seeing this on 8.1.37
