Skip to content

Commit

Permalink
feat(Sheet): add background css api (#2105)
Browse files Browse the repository at this point in the history
  • Loading branch information
iapolya authored Feb 12, 2025
1 parent e8651fa commit 51d1dc2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions src/components/Sheet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const SheetExample = () => {

## CSS API

| Name | Description |
| :-------------------------- | :-------------- |
| `--g-sheet-content-padding` | Content padding |
| Name | Description |
| :--------------------------- | :--------------- |
| `--g-sheet-content-padding` | Content padding |
| `--g-sheet-background-color` | Background color |
4 changes: 2 additions & 2 deletions src/components/Sheet/Sheet.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ $block: '.#{variables.$ns}sheet';
height: $top-height;
border-start-start-radius: 20px;
border-start-end-radius: 20px;
background-color: var(--g-color-base-float);
background-color: var(--g-sheet-background-color, var(--g-color-base-float));
}

&__sheet-top-resizer {
Expand All @@ -75,7 +75,7 @@ $block: '.#{variables.$ns}sheet';
max-height: calc(90% - #{$top-height});
overflow: hidden auto;
overscroll-behavior-y: contain;
background-color: var(--g-color-base-float);
background-color: var(--g-sheet-background-color, var(--g-color-base-float));

transition: height $transition-duration ease;

Expand Down

0 comments on commit 51d1dc2

Please sign in to comment.