Merge pull request #1110 from ing-bank/fix/ArrowMixinStyles
fix: point to parent constructor in static get styles (points to undefined atm)
This commit is contained in:
commit
df978dd8bb
5 changed files with 17 additions and 6 deletions
7
.changeset/strong-humans-sip.md
Normal file
7
.changeset/strong-humans-sip.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
'@lion/form-core': patch
|
||||
'@lion/listbox': patch
|
||||
'@lion/overlays': patch
|
||||
---
|
||||
|
||||
fix: point to parent constructor in styles getter
|
||||
|
|
@ -615,7 +615,8 @@ const FormControlMixinImplementation = superclass =>
|
|||
* - {element} .input-group__after (optional) : a suffix that resides outside the container
|
||||
*/
|
||||
static get styles() {
|
||||
const superCtor = /** @type {typeof import('@lion/core').LitElement} */ (super.constructor);
|
||||
const superCtor = /** @type {typeof import('@lion/core').LitElement} */ (super.prototype
|
||||
.constructor);
|
||||
return [
|
||||
superCtor.styles ? superCtor.styles : [],
|
||||
css`
|
||||
|
|
|
|||
|
|
@ -136,7 +136,8 @@ const ChoiceInputMixinImplementation = superclass =>
|
|||
* For [role=option] extensions, please override completely
|
||||
*/
|
||||
static get styles() {
|
||||
const superCtor = /** @type {typeof import('@lion/core').LitElement} */ (super.constructor);
|
||||
const superCtor = /** @type {typeof import('@lion/core').LitElement} */ (super.prototype
|
||||
.constructor);
|
||||
return [
|
||||
superCtor.styles ? superCtor.styles : [],
|
||||
css`
|
||||
|
|
|
|||
|
|
@ -73,7 +73,8 @@ const ListboxMixinImplementation = superclass =>
|
|||
}
|
||||
|
||||
static get styles() {
|
||||
const superCtor = /** @type {typeof import('@lion/core').LitElement} */ (super.constructor);
|
||||
const superCtor = /** @type {typeof import('@lion/core').LitElement} */ (super.prototype
|
||||
.constructor);
|
||||
return [
|
||||
superCtor.styles ? superCtor.styles : [],
|
||||
css`
|
||||
|
|
|
|||
|
|
@ -24,7 +24,8 @@ export const ArrowMixinImplementation = superclass =>
|
|||
}
|
||||
|
||||
static get styles() {
|
||||
const superCtor = /** @type {typeof import('@lion/core').LitElement} */ (super.constructor);
|
||||
const superCtor = /** @type {typeof import('@lion/core').LitElement} */ (super.prototype
|
||||
.constructor);
|
||||
return [
|
||||
superCtor.styles ? superCtor.styles : [],
|
||||
css`
|
||||
|
|
@ -102,9 +103,9 @@ export const ArrowMixinImplementation = superclass =>
|
|||
}
|
||||
|
||||
/**
|
||||
* @overridable method `_defineOverlay`
|
||||
* @desc Overrides arrow and keepTogether modifier to be enabled,
|
||||
* Overrides arrow and keepTogether modifier to be enabled,
|
||||
* and adds onCreate and onUpdate hooks to sync from popper state
|
||||
* @configure OverlayMixin
|
||||
* @returns {OverlayConfig}
|
||||
*/
|
||||
// eslint-disable-next-line
|
||||
|
|
|
|||
Loading…
Reference in a new issue