Skip to content

Commit

Permalink
fix: manage updated node types
Browse files Browse the repository at this point in the history
  • Loading branch information
Westbrook committed Oct 18, 2022
1 parent 7c92324 commit 0517fc1
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/icon/src/Icon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class Icon extends IconBase {
public src?: string;

@property()
public name?: string;
public override name?: string;

@query('#container')
private iconContainer?: HTMLElement;
Expand Down
4 changes: 2 additions & 2 deletions packages/iconset/src/iconset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export abstract class Iconset extends LitElement {
* to consuming icons.
*/
@property()
public set name(value: string) {
public override set name(value: string) {
// if we're already registered in the iconset registry
// we'll need to update our registration
if (this.registered) {
Expand All @@ -53,7 +53,7 @@ export abstract class Iconset extends LitElement {
}
this._name = value;
}
public get name(): string {
public override get name(): string {
return this._name;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/iconset/stories/icons-demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class DelayedReady extends SpectrumElement {
@customElement('icons-demo')
export class IconsDemo extends SpectrumElement {
@property()
public name = 'ui';
public override name = 'ui';

@property()
public package = '';
Expand Down
2 changes: 1 addition & 1 deletion packages/radio/src/RadioGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import { RovingTabindexController } from '@spectrum-web-components/reactive-cont
*/
export class RadioGroup extends FocusVisiblePolyfillMixin(FieldGroup) {
@property({ type: String })
public name = '';
public override name = '';

@queryAssignedNodes('')
public defaultNodes!: Node[];
Expand Down
2 changes: 1 addition & 1 deletion packages/slider/src/SliderHandle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class SliderHandle extends Focusable {
public highlight = false;

@property({ type: String })
public name = '';
public override name = '';

@property({ reflect: true, converter: MinConverter })
public min?: number | 'previous';
Expand Down
2 changes: 1 addition & 1 deletion tools/reactive-controllers/src/FocusGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export class FocusGroupController<T extends HTMLElement>
if (typeof listenerScope === 'object') {
this._listenerScope = () => listenerScope;
} else if (typeof listenerScope === 'function') {
this._listenerScope = listenerScope;
this._listenerScope = listenerScope as () => HTMLElement;
}
}

Expand Down

0 comments on commit 0517fc1

Please sign in to comment.