File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
web/ui/mantine-ui/src/pages Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1+ .item {
2+ background-color: light-dark(var(--mantine-color-gray-1), var(--mantine-color-dark-5));
3+ }
4+
5+ .item[data-active] {
6+ background-color: light-dark(var(--mantine-color-body-light), var(--mantine-color-body-dark));
7+ }
8+
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ import { useDebouncedValue } from "@mantine/hooks";
3636import { KVSearch } from "@nexucis/kvsearch";
3737import { inputIconStyle } from "../styles";
3838import CustomInfiniteScroll from "../components/CustomInfiniteScroll";
39+ import classes from "./AlertsPage.module.css";
3940
4041type AlertsPageData = {
4142 // How many rules are in each state across all groups.
@@ -276,19 +277,10 @@ export default function AlertsPage() {
276277 <CustomInfiniteScroll
277278 allItems={g.rules}
278279 child={({ items }) => (
279- <Accordion multiple variant="separated">
280+ <Accordion multiple variant="separated" classNames={classes} >
280281 {items.map((r, j) => {
281282 return (
282283 <Accordion.Item
283- styles={{
284- item: {
285- // TODO: This transparency hack is an OK workaround to make the collapsed items
286- // have a different background color than their surrounding group card in dark mode,
287- // but it would be better to use CSS to override the light/dark colors for
288- // collapsed/expanded accordion items.
289- backgroundColor: "#c0c0c015",
290- },
291- }}
292284 key={j}
293285 value={j.toString()}
294286 className={
You can’t perform that action at this time.
0 commit comments