diff --git a/__snapshots__/popup.md b/__snapshots__/popup.md index 115acd788..ca05373f9 100644 --- a/__snapshots__/popup.md +++ b/__snapshots__/popup.md @@ -3,8 +3,8 @@ #### `should internal contents` ```html - + + ``` diff --git a/components/elevation/readme.md b/components/elevation/readme.md index 3601cefb0..ce905c968 100644 --- a/components/elevation/readme.md +++ b/components/elevation/readme.md @@ -24,12 +24,6 @@ Note that this component is responsible for the perceived elevation alone and no |--- |--- |--- |-------------------------------------------------------------------------------------------| |dp|property/attribute|string| Level in Density-Independent Pixels (DP). Possible values: `0`,`2`,`4`,`8`,`12`,`16`,`24` | -### CSS Variables - -|name|description|default| -|--- |--- |--- | -|`--vvd-elevation-background-color`|Color for the elevation surface background | defaults to theme’s surface background | -|`--vvd-elevation-border-radius`|Border radius of the elevation’s surface in pixels| 6px | # Example: diff --git a/components/elevation/src/vwc-elevation.scss b/components/elevation/src/vwc-elevation.scss index 5974f774b..fd2376ff8 100644 --- a/components/elevation/src/vwc-elevation.scss +++ b/components/elevation/src/vwc-elevation.scss @@ -19,12 +19,10 @@ $elevation-border-radius: --elevation-border-radius; @each $dp in $dps { #{get-default-selector($dps, $dp)} { - background-color: var(--vvd-color-surface-#{$dp}dp); - filter: var(--vvd-shadow-surface-#{$dp}dp); + ::slotted(*) { + background-color: var(--vvd-color-surface-#{$dp}dp); + filter: var(--vvd-shadow-surface-#{$dp}dp); + } } } -.vwc-elevation { - --elevation-border-radius: 6px; - border-radius: var(#{--elevation-border-radius}); -} diff --git a/components/elevation/src/vwc-elevation.ts b/components/elevation/src/vwc-elevation.ts index 937181d16..dabb3a0bc 100644 --- a/components/elevation/src/vwc-elevation.ts +++ b/components/elevation/src/vwc-elevation.ts @@ -26,7 +26,7 @@ export class VWCElevation extends LitElement { }; return html` -
+
`; diff --git a/components/elevation/stories/elevation.stories.js b/components/elevation/stories/elevation.stories.js index ad2d49a50..6ca75a762 100644 --- a/components/elevation/stories/elevation.stories.js +++ b/components/elevation/stories/elevation.stories.js @@ -26,6 +26,7 @@ const styles = () => html` padding: 20px; text-align: center; width: 500px; + border-radius: 6px; } `; diff --git a/components/popup/src/vwc-popup-base.ts b/components/popup/src/vwc-popup-base.ts index 6a98ec93f..515e11721 100644 --- a/components/popup/src/vwc-popup-base.ts +++ b/components/popup/src/vwc-popup-base.ts @@ -222,21 +222,25 @@ export class VWCPopupBase extends LitElement { } protected override render(): TemplateResult { - const part = this.alternate ? 'vvd-scheme-alternate' : ''; + const alternate = this.alternate ? 'vvd-scheme-alternate' : ''; const aria = this.open ? 'false' : 'true'; return html` -