diff --git a/.changeset/long-parents-divide.md b/.changeset/long-parents-divide.md new file mode 100644 index 000000000..c38a57120 --- /dev/null +++ b/.changeset/long-parents-divide.md @@ -0,0 +1,7 @@ +--- +'@lion/combobox': patch +'@lion/select-rich': patch +'@lion/tooltip': patch +--- + +Fix some type issues with static get styles, CSSResultArray combines CSSResult and CSSResult[]. diff --git a/packages/combobox/src/LionCombobox.js b/packages/combobox/src/LionCombobox.js index b57ffa288..7d66ec08b 100644 --- a/packages/combobox/src/LionCombobox.js +++ b/packages/combobox/src/LionCombobox.js @@ -19,7 +19,6 @@ import { LionListbox } from '@lion/listbox'; * LionCombobox: implements the wai-aria combobox design pattern and integrates it as a Lion * FormControl */ -// @ts-ignore export class LionCombobox extends OverlayMixin(LionListbox) { static get properties() { return { diff --git a/packages/select-rich/src/LionSelectInvoker.js b/packages/select-rich/src/LionSelectInvoker.js index aa35bfb26..f5ffd2f6c 100644 --- a/packages/select-rich/src/LionSelectInvoker.js +++ b/packages/select-rich/src/LionSelectInvoker.js @@ -9,11 +9,10 @@ import { css, html } from '@lion/core'; /** * LionSelectInvoker: invoker button consuming a selected element */ -// @ts-expect-error export class LionSelectInvoker extends LionButton { static get styles() { return [ - super.styles, + ...super.styles, css` :host { justify-content: space-between; diff --git a/packages/tooltip/src/LionTooltip.js b/packages/tooltip/src/LionTooltip.js index 7d53fbb7a..0c7d04012 100644 --- a/packages/tooltip/src/LionTooltip.js +++ b/packages/tooltip/src/LionTooltip.js @@ -22,7 +22,7 @@ export class LionTooltip extends ArrowMixin(OverlayMixin(LitElement)) { static get styles() { return [ - /** @type {CSSResult | CSSStyleSheet | CSSResultArray} */ (super.styles), + super.styles ? super.styles : [], css` :host { display: inline-block;