Skip to content

Commit

Permalink
fixes panel header styles when no theme is applied (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
ifrim authored Jun 26, 2024
1 parent 8bea0e3 commit bf1d8e0
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/Panel/Panel.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,13 @@
border: var(--general-border-width) solid var(--color-default-light);
box-shadow: none;
}
}

.tyk-panel--blank,
.tyk-panel--primary,
.tyk-panel--success,
.tyk-panel--danger,
.tyk-panel--warning {
.tyk-panel__header {
border: none;
font-size: var(--lg-font-size);
Expand Down
20 changes: 20 additions & 0 deletions src/components/Panel/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,26 @@
```js
import Button from '../Button';
<>
<Panel>
<Panel.Header>Panel example (no theme)</Panel.Header>
<Panel.Body>
<label>label</label>
Panel body content
</Panel.Body>
</Panel>
<Panel collapsable theme="success" collapsibleIconPosition="left">
{
({toggleCollapse}) => (
<>
<Panel.Header>Panel example</Panel.Header>
<Panel.Body>
<Button onClick={toggleCollapse} theme="primary">Collapse</Button>
Panel body content 222
</Panel.Body>
</>
)
}
</Panel>
<Panel theme="primary">
<Panel.Header>Panel example</Panel.Header>
<Panel.Body>
Expand Down

0 comments on commit bf1d8e0

Please sign in to comment.