Skip to content

Commit 5b9c08e

Browse files
committed
fix(card): prefer color-palette over color
1 parent f5a1693 commit 5b9c08e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.changeset/context-controller-cavalcade.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848
<pfe-band color-palette="darkest">...</pfe-band>
4949
```
5050
- Removes `pfe-contexts` mixin from `pfe-sass`, use controllers or decorators instead
51-
- Removes `pfe-accordion--expanded` mixin from `pfe-sass` and inlines it
52-
- Deprecates `context` attribute,
51+
- Removes `pfe-accordion--expanded` mixin from `pfe-sass`, and inlines it
52+
- Removes `context` attribute,
5353
Before;
5454
```html
5555
<pfe-modal context="dark">

elements/pfe-card/pfe-card.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ export class PfeCard extends LitElement {
8787
* Card always resets its context to `base`, unless explicitly provided with a `color-palette`.
8888
*/
8989
@colorContextProvider()
90-
@property({ reflect: true, attribute: 'color-palette' }) colorPalette?: ColorPalette;
90+
@property({ reflect: true, attribute: 'color-palette' }) colorPalette?: ColorPalette = 'base';
9191

9292
/** @deprecated use `color-palette` */
93-
@deprecation({ alias: 'colorPalette', attribute: 'color' }) color: ColorPalette = 'base';
93+
@deprecation({ alias: 'colorPalette', attribute: 'color' }) color?: ColorPalette;
9494

9595
/**
9696
* Sets color theme based on parent context

0 commit comments

Comments
 (0)