Skip to content

Commit

Permalink
Fix visible icon button color in ListBlock and ColumnsBlock (#2406)
Browse files Browse the repository at this point in the history
"secondary" color was changed in #1999.
  • Loading branch information
SebiVPS authored Aug 12, 2024
1 parent 773f62c commit 6be41b6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/thirty-melons-speak.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@comet/blocks-admin": patch
---

Fix color for visible icon button in `ListBlock` and `ColumnsBlock`
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ export function createColumnsBlock<T extends BlockInterface>({
visibilityButton={
<IconButton onClick={() => toggleVisible(column.key)} size="small">
{column.visible ? (
<Visible color="secondary" />
<Visible color="success" />
) : (
<Invisible color="action" />
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ export function createListBlock<T extends BlockInterface, AdditionalItemFields e
disabled={!canToggleVisibility}
>
{data.visible ? (
<Visible color="secondary" />
<Visible color="success" />
) : (
<Invisible color="action" />
)}
Expand Down

0 comments on commit 6be41b6

Please sign in to comment.