Make panel adhere to Figma design
Summary: css to change the header styling Reviewed By: lblasa Differential Revision: D50595982 fbshipit-source-id: 836ea7881426e95abb449c085fca39606cd8cfdd
This commit is contained in:
committed by
Facebook GitHub Bot
parent
115cb1af71
commit
f3449a5641
@@ -29,6 +29,7 @@ export const Panel: React.FC<{
|
||||
pad?: Spacing;
|
||||
gap?: Spacing;
|
||||
extraActions?: React.ReactElement | null;
|
||||
className?: string;
|
||||
}> = (props) => {
|
||||
const [collapsed, setCollapsed] = useLocalStorageState(
|
||||
`panel:${props.title}:collapsed`,
|
||||
@@ -45,6 +46,7 @@ export const Panel: React.FC<{
|
||||
return (
|
||||
<TrackingScope scope={props.title}>
|
||||
<StyledCollapse
|
||||
className={props.className}
|
||||
bordered={false}
|
||||
activeKey={collapsed ? undefined : props.title}
|
||||
onChange={toggle}>
|
||||
|
||||
Reference in New Issue
Block a user