Skip to content

Commit

Permalink
fix(): fix depracted fields in navbar,stage and bal-list
Browse files Browse the repository at this point in the history
  • Loading branch information
nobilo committed Nov 27, 2022
1 parent 6c7dbc4 commit 6607cdd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion packages/components/src/components/bal-list/bal-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ export class List {
* @deprecated
* If `true` the list can be used on a dark background
*/
@Prop() inverted = false
@Prop() inverted = undefined
@Watch('inverted')
invertedHandler() {
console.warn('[DEPRECATED] - Please use the property background="dark" instead')
if (this.inverted === true) {
this.background = 'dark'
} else {
this.background = 'light'
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class NavbarBrand {
@Watch('linkTarget')
hasShapeHandler() {
console.warn('[DEPRECATED] - Please use the property target instead')
this.migrateLinkTarget
this.migrateLinkTarget()
}

private migrateLinkTarget() {
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/components/bal-stage/bal-stage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class Stage implements ComponentInterface {
@Watch('hasShape')
hasShapeHandler() {
console.warn('[DEPRECATED] - Please use the property shape instead')
this.migrateHasShape
this.migrateHasShape()
}

private migrateHasShape() {
Expand Down

0 comments on commit 6607cdd

Please sign in to comment.