# CSS for Buttons Background

**URL:** <https://community.glideapps.com/t/css-for-buttons-background/61161>\
**Category:** Ask for Help\
**Created:** [April 29, 2023, 2:02pm UTC](https://community.glideapps.com/t/css-for-buttons-background/61161 "2023-04-29T14:02:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [April 30, 2023, 12:23am UTC](https://community.glideapps.com/t/css-for-buttons-background/61161/2 "2023-04-30T00:23:21Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/c/7c0fc007be446b4bb3aa6ae3bc10908aed1e1473.png)

```auto
div[data-testid*="test-tiles"] button[aria-label="Primary"].tiles {
background-color: gold;
}

div[data-testid*="test-tiles"] button[aria-label="Secondary"].tiles {
background-color: green;
color: white;
}

div[data-testid*="test-tiles"] button[aria-label="Go!"].tiles {
background-color: magenta;
color: white;
}

```

The custom CSS class here is “test-tiles”.

If you have a sole “open link” action, it should change from “button[aria-label…]” to “a[aria-label…”.

---

_[View the full topic](https://community.glideapps.com/t/css-for-buttons-background/61161)._
