-
Notifications
You must be signed in to change notification settings - Fork 940
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Aspects Page: Expand/Collapse nested objects + Copy JSON #6563
Conversation
} | ||
|
||
.toolbar { | ||
flex-direction: row; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
row is by default. I think you can remove this line
} | ||
.copyIcon { | ||
display: flex; | ||
font-size: var(--bit-p-xs); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add default size
box-sizing: border-box; | ||
border: none; | ||
background-color: var(--bit-bg-color-highlight); | ||
color: var(--bit-accent-color); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also default colors
@@ -11,12 +16,10 @@ export type AspectBoxProps = { | |||
data: any; | |||
} & React.HTMLAttributes<HTMLDivElement>; | |||
|
|||
const collapsedIcon = 'https://static.bit.dev/bit-icons/collapse.svg'; | |||
const expandIcon = 'https://static.bit.dev/bit-icons/expand.svg'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we're doing the same in component drawer so maybe we can make a component and use in both?
* @todo extract to a separate component | ||
*/ | ||
|
||
function DisplayJsonTree({ object, title }: { object: any; title: string }) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any?
Proposed Changes