Skip to content

Commit

Permalink
fix(tabs): move panel padding to host (#1345)
Browse files Browse the repository at this point in the history
* fix(tabs): move padding to host

* chore(tabs): add changeset

* chore(tabs): update changeset

* docs(tabs): add base theme demo

* docs(tabs): revert adding demo, add in seperate branch

* docs(tabs): try again, revert adding base theme demo

* fix(tabs): revert change on vertical margin

---------

Co-authored-by: Benny Powers - עם ישראל חי! <bennypowers@users.noreply.github.com>
  • Loading branch information
zeroedin and bennypowers committed Nov 27, 2023
1 parent 90c0ca4 commit c9b8187
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/funny-brooms-sell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rhds/elements": minor
---

`<rh-tabs-panel>`: adds ability to override panel margin and padding
6 changes: 3 additions & 3 deletions elements/rh-tabs/rh-tab-panel.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#rhds-container {
:host {
display: block;
padding: var(--rh-space-2xl, 32px);
}

:host([box="inset"]) #rhds-container {
:host([box="inset"]) {
padding-inline: var(--_panels-overflow-padding, var(--rh-space-4xl, 64px));
}

Expand All @@ -16,7 +16,7 @@
margin-inline: 0;
}

:host([box][vertical]) #rhds-container {
:host([box][vertical]) {
padding: var(--rh-space-3xl, 48px);
}
}

0 comments on commit c9b8187

Please sign in to comment.