-
Notifications
You must be signed in to change notification settings - Fork 120
DOCSP-1682 - Change default tab behavior to render inline. Added 'hid… #178
DOCSP-1682 - Change default tab behavior to render inline. Added 'hid… #178
Conversation
MUST BE MERGED WITH: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Largely lgtm! A type issue though
|
||
// Only tab sets will have a type, init and try to retrieve | ||
this.type = null; | ||
if (this.tabStrip !== null) { | ||
this.type = this.tabStrip.getAttribute('data-tab-preference'); | ||
if (this.tabStrips !== null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.tabStrips
will never be null
given the above switch to querySelectorAll
.
This should read if (this.tabStrips.length > 0) {
if (!tabsElement) { return null; } | ||
|
||
return tabsElement.getAttribute('data-tabid'); | ||
} | ||
|
||
setup() { | ||
if (!this.tabStrip) { return; } | ||
if (!this.tabStrips) { return; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above
} | ||
|
||
this.update(); | ||
} | ||
|
||
update() { | ||
if (!this.tabStrip) { return; } | ||
if (!this.tabStrips) { return; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you've tested this out, I don't see anything wrong 👍
…den: true' property to hide tab strips. Added 'tabs-top' directive to pull tab strip to the top of the page.
e4bd101
to
a03ef19
Compare
…den: true' property to hide tab strips. Added 'tabs-top' directive to pull tab strip to the top of the page.
This change is