Skip to content

Commit

Permalink
Tiny component fix to make sure that named array elements are not fai…
Browse files Browse the repository at this point in the history
…nt gray
  • Loading branch information
OAGr committed Jan 16, 2024
1 parent cfbbdca commit 3690a90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export const ValueWithContextViewer: FC<Props> = ({
const getHeaderColor = () => {
let color = "text-orange-900";
const parentTag = parentValue?.tag;
if (parentTag === "Array") {
if (parentTag === "Array" && !taggedName) {
color = "text-stone-400";
} else if (path.items.length > 1) {
color = "text-teal-700";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,9 @@ export const Tagged: Story = {
@showAs(Plot.numericFn)
@name("My favorite Fn")
fn = {|e| e}
bar = [x, fn]
y = x -> Tag.all`,
y = x -> Tag.getAll`,
},
};

3 comments on commit 3690a90

@vercel
Copy link

@vercel vercel bot commented on 3690a90 Jan 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 3690a90 Jan 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 3690a90 Jan 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.