Skip to content

Commit

Permalink
fix(styles): fix spacing between PanelHeading and PanelContent (#1064)
Browse files Browse the repository at this point in the history
  • Loading branch information
scurker authored May 4, 2023
1 parent 7637a80 commit abdecaa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/pages/components/Panel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ In addition to using the `heading` prop, you can also compose the `Panel` compon
`PanelContent` components.

<Note>
The `PanelHeader` and `PanelContent` should not be used with the `Panel`
heading prop at the same time. Choose one or the other.
The `PanelHeader` should not be used with the Panel
`heading` prop at the same time. Choose one or the other.
</Note>

```jsx example
Expand Down
4 changes: 4 additions & 0 deletions packages/styles/panel.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
var(--space-small) calc(var(--panel-padding) * -1);
}

.Panel__Heading + .Panel__Content {
margin-top: calc(var(--panel-padding) * -1);
}

.Panel__Header {
margin: calc(var(--panel-padding) * -1) calc(var(--panel-padding) * -1) 0
calc(var(--panel-padding) * -1);
Expand Down

0 comments on commit abdecaa

Please sign in to comment.