CSS for Buttons Background

Hi Community,

Any way how I can control this type of button background so I can control different color for it

Keep in mind am using Tiles Buttons

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…”.

3 Likes

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.