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
|
* LionCombobox: implements the wai-aria combobox design pattern and integrates it as a Lion
|
||||||
* FormControl
|
* FormControl
|
||||||
*/
|
*/
|
||||||
// @ts-ignore
|
|
||||||
export class LionCombobox extends OverlayMixin(LionListbox) {
|
export class LionCombobox extends OverlayMixin(LionListbox) {
|
||||||
static get properties() {
|
static get properties() {
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
|
|
@ -9,11 +9,10 @@ import { css, html } from '@lion/core';
|
||||||
/**
|
/**
|
||||||
* LionSelectInvoker: invoker button consuming a selected element
|
* LionSelectInvoker: invoker button consuming a selected element
|
||||||
*/
|
*/
|
||||||
// @ts-expect-error
|
|
||||||
export class LionSelectInvoker extends LionButton {
|
export class LionSelectInvoker extends LionButton {
|
||||||
static get styles() {
|
static get styles() {
|
||||||
return [
|
return [
|
||||||
super.styles,
|
...super.styles,
|
||||||
css`
|
css`
|
||||||
:host {
|
:host {
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ export class LionTooltip extends ArrowMixin(OverlayMixin(LitElement)) {
|
||||||
|
|
||||||
static get styles() {
|
static get styles() {
|
||||||
return [
|
return [
|
||||||
/** @type {CSSResult | CSSStyleSheet | CSSResultArray} */ (super.styles),
|
super.styles ? super.styles : [],
|
||||||
css`
|
css`
|
||||||
:host {
|
:host {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue