Skip to content

Commit

Permalink
Disassociate @observable and @Property in expansion_panel.ts.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 555170318
  • Loading branch information
nadah09 authored and LIT team committed Aug 9, 2023
1 parent dfcfa86 commit 808f95c
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions lit_nlp/client/elements/expansion_panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@ import {html} from 'lit';
import {customElement, property} from 'lit/decorators.js';
import {classMap} from 'lit/directives/class-map.js';
import {styleMap} from 'lit/directives/style-map.js';
import {observable} from 'mobx';

import {ReactiveElement} from '../lib/elements';
import {styles as sharedStyles} from '../lib/shared_styles.css';

import {styles} from './expansion_panel.css';
import {styles as sharedStyles} from '../lib/shared_styles.css';

/** Custom expansion event interface for ExpansionPanel */
export interface ExpansionToggle {
Expand All @@ -44,11 +43,11 @@ export class ExpansionPanel extends ReactiveElement {
return [sharedStyles, styles];
}

@observable @property({type: String}) label = '';
@observable @property({type: String}) description = '';
@observable @property({type: Boolean}) expanded = false;
@observable @property({type: Boolean}) padLeft = false;
@observable @property({type: Boolean}) padRight = false;
@property({type: String}) label = '';
@property({type: String}) description = '';
@property({type: Boolean}) expanded = false;
@property({type: Boolean}) padLeft = false;
@property({type: Boolean}) padRight = false;

override render() {
const contentPadding = (this.padLeft ? 8 : 0) + (this.padRight ? 16 : 0);
Expand Down

0 comments on commit 808f95c

Please sign in to comment.