Skip to content

Commit

Permalink
refactor(cards): elevation
Browse files Browse the repository at this point in the history
  • Loading branch information
MM25Zamanian authored and alimd committed Jan 10, 2023
1 parent ec2c0f2 commit 537293e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
5 changes: 2 additions & 3 deletions ui/ui-kit/src/cards/card.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
import {AlwatrDummyElement, css, html, TemplateResult} from '@alwatr/element';

import {hostElevation} from '../elavation/style.js';

export class AlwatrCard extends AlwatrDummyElement {
static override styles = [
hostElevation,
css`
:host {
display: flex;
flex-direction: column;
border-radius: var(--sys-shape-corner-medium-default-size);
color: var(--sys-color-on-surface);
--elevation-level: 0;
}
`,
];
Expand Down
2 changes: 1 addition & 1 deletion ui/ui-kit/src/cards/elevated-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class AlwatrElevatedCard extends AlwatrCard {
:host {
background-color: var(--sys-color-surface);
--_elevation-level: 1;
--elevation-level: 1;
}
`,
];
Expand Down
2 changes: 0 additions & 2 deletions ui/ui-kit/src/cards/filled-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ export class AlwatrFilledCard extends AlwatrCard {
css`
:host {
background-color: var(--sys-color-surface-variant);
--_elevation-level: 0;
}
`,
];
Expand Down
2 changes: 0 additions & 2 deletions ui/ui-kit/src/cards/outlined-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ export class AlwatrOutlinedCard extends AlwatrCard {
:host {
background-color: var(--sys-color-surface);
border: 1px solid var(--sys-color-outline);
--_elevation-level: 0;
}
`,
];
Expand Down

0 comments on commit 537293e

Please sign in to comment.