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
|
* - {element} .input-group__after (optional) : a suffix that resides outside the container
|
||||||
*/
|
*/
|
||||||
static get styles() {
|
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 [
|
return [
|
||||||
superCtor.styles ? superCtor.styles : [],
|
superCtor.styles ? superCtor.styles : [],
|
||||||
css`
|
css`
|
||||||
|
|
|
||||||
|
|
@ -136,7 +136,8 @@ const ChoiceInputMixinImplementation = superclass =>
|
||||||
* For [role=option] extensions, please override completely
|
* For [role=option] extensions, please override completely
|
||||||
*/
|
*/
|
||||||
static get styles() {
|
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 [
|
return [
|
||||||
superCtor.styles ? superCtor.styles : [],
|
superCtor.styles ? superCtor.styles : [],
|
||||||
css`
|
css`
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,8 @@ const ListboxMixinImplementation = superclass =>
|
||||||
}
|
}
|
||||||
|
|
||||||
static get styles() {
|
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 [
|
return [
|
||||||
superCtor.styles ? superCtor.styles : [],
|
superCtor.styles ? superCtor.styles : [],
|
||||||
css`
|
css`
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,8 @@ export const ArrowMixinImplementation = superclass =>
|
||||||
}
|
}
|
||||||
|
|
||||||
static get styles() {
|
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 [
|
return [
|
||||||
superCtor.styles ? superCtor.styles : [],
|
superCtor.styles ? superCtor.styles : [],
|
||||||
css`
|
css`
|
||||||
|
|
@ -102,9 +103,9 @@ export const ArrowMixinImplementation = superclass =>
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @overridable method `_defineOverlay`
|
* Overrides arrow and keepTogether modifier to be enabled,
|
||||||
* @desc Overrides arrow and keepTogether modifier to be enabled,
|
|
||||||
* and adds onCreate and onUpdate hooks to sync from popper state
|
* and adds onCreate and onUpdate hooks to sync from popper state
|
||||||
|
* @configure OverlayMixin
|
||||||
* @returns {OverlayConfig}
|
* @returns {OverlayConfig}
|
||||||
*/
|
*/
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue