Merge pull request #1171 from ing-bank/fix/styles-types
fix: type issues with regards to static styles
This commit is contained in:
commit
cc62c4d90b
4 changed files with 9 additions and 4 deletions
7
.changeset/long-parents-divide.md
Normal file
7
.changeset/long-parents-divide.md
Normal file
|
|
@ -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[].
|
||||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue