mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
fix card slot detection (#1779)
This commit is contained in:
@@ -14,6 +14,7 @@ Components with the <wa-badge variant="warning">Experimental</wa-badge> badge sh
|
|||||||
## Next
|
## Next
|
||||||
|
|
||||||
- Fixed a bug in `<wa-slider>` that caused some touch devices to end up with the incorrect value [issue:1703]
|
- Fixed a bug in `<wa-slider>` that caused some touch devices to end up with the incorrect value [issue:1703]
|
||||||
|
- Fixed a bug in `<wa-card>` that prevented some slots from being detected correctly [discuss:1450]
|
||||||
|
|
||||||
## 3.0.0
|
## 3.0.0
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,15 @@ import styles from './card.css';
|
|||||||
export default class WaCard extends WebAwesomeElement {
|
export default class WaCard extends WebAwesomeElement {
|
||||||
static css = [sizeStyles, styles];
|
static css = [sizeStyles, styles];
|
||||||
|
|
||||||
private readonly hasSlotController = new HasSlotController(this, 'footer', 'header', 'media');
|
private readonly hasSlotController = new HasSlotController(
|
||||||
|
this,
|
||||||
|
'footer',
|
||||||
|
'header',
|
||||||
|
'media',
|
||||||
|
'header-actions',
|
||||||
|
'footer-actions',
|
||||||
|
'actions',
|
||||||
|
);
|
||||||
|
|
||||||
/** The card's visual appearance. */
|
/** The card's visual appearance. */
|
||||||
@property({ reflect: true })
|
@property({ reflect: true })
|
||||||
|
|||||||
Reference in New Issue
Block a user