Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

Commit

Permalink
feat(value-list): using Scrim for loading and disabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
asangma committed Oct 19, 2019
1 parent e9d0c74 commit 26027e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/components/calcite-value-list/calcite-value-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
display: flex;
flex-flow: column;
padding: 0 var(--calcite-app-side-spacing-half);
position: relative;
}

header {
Expand Down
7 changes: 3 additions & 4 deletions src/components/calcite-value-list/calcite-value-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
import guid from "../utils/guid";
import { CSS, ICON_TYPES, TEXT } from "./resources";
import { VNode } from "@stencil/core/dist/declarations";
import CalciteScrim from "../utils/CalciteScrim";

/**
* @slot menu-actions - A slot for adding a button + menu combo for performing actions like sorting.
Expand Down Expand Up @@ -276,11 +277,9 @@ export class CalciteValueList {
}

renderScrim(): VNode {
return this.loading || this.disabled ? <calcite-loader is-active></calcite-loader> : null;
// REPLACE WITH CalciteScrim #381
/*
return this.loading || this.disabled ? (
<CalciteScrim loading={this.loading}></CalciteScrim>
*/
) : null;
}

render() {
Expand Down

0 comments on commit 26027e2

Please sign in to comment.