Merge pull request #1171 from ing-bank/fix/styles-types

fix: type issues with regards to static styles
This commit is contained in:
Joren Broekema 2021-01-07 16:52:52 +01:00 committed by GitHub
commit cc62c4d90b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 4 deletions

View 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[].

View file

@ -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 {

View file

@ -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;

View file

@ -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;