# Trouble with styles on Perspective One Shot buttons

**URL:** <https://forum.inductiveautomation.com/t/trouble-with-styles-on-perspective-one-shot-buttons/67703>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [December 16, 2022, 12:10am UTC](https://forum.inductiveautomation.com/t/trouble-with-styles-on-perspective-one-shot-buttons/67703 "2022-12-16T00:10:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShaneH](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@ShaneH](https://forum.inductiveautomation.com/u/ShaneH)\
**Post date:** [December 16, 2022, 12:10am UTC](https://forum.inductiveautomation.com/t/trouble-with-styles-on-perspective-one-shot-buttons/67703/1 "2022-12-16T00:10:47Z")

</div>

Hi-

I'm attempting to to set styles and style classes on Perspective One Shot buttons.

Setting the styles on the the sub-states (readyState/writingState) generally works.

Settings in the main style for the component do not. I'd like to set common styles there, instead of having to duplicate everything in the two sub-states.

Additionally, 'margin' styles on the sub-state behave very weirdly, like they are being treated more like 'padding' instead. I couldn't get 'margin' styles to work on the main section.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/f/af24334c7ca07b296efcd0bc66c3815d5e369b64.png)

Perspective 8.1.21

Any ideas?  
Thanks.  
-Shane

---

<div class="post-metadata">

**Author:** ![ShaneH](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@ShaneH](https://forum.inductiveautomation.com/u/ShaneH)\
**Post date:** [December 19, 2022, 1:27pm UTC](https://forum.inductiveautomation.com/t/trouble-with-styles-on-perspective-one-shot-buttons/67703/2 "2022-12-19T13:27:58Z")

</div>

I'm guessing Perspective One Shot buttons aren't all that popular 🙂  
Was hoping someone else might verify before I submit a bug request needlessly.

Thanks.  
-Shane

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [December 19, 2022, 4:14pm UTC](https://forum.inductiveautomation.com/t/trouble-with-styles-on-perspective-one-shot-buttons/67703/3 "2022-12-19T16:14:03Z")

</div>

We are actually working on resolving this bug during this current sprint. There's a chance it could make the 8.1.24 release, but with so many on vacation during the holidays it's not guaranteed.
