Skip to content
This repository was archived by the owner on Mar 5, 2024. It is now read-only.

DOCSP-1682 - Change default tab behavior to render inline. Added 'hid…#178

Merged
jdestefano-mongo merged 1 commit into
mongodb:masterfrom
jdestefano-mongo:DOCSP-1682v2
Feb 27, 2018
Merged

DOCSP-1682 - Change default tab behavior to render inline. Added 'hid…#178
jdestefano-mongo merged 1 commit into
mongodb:masterfrom
jdestefano-mongo:DOCSP-1682v2

Conversation

@jdestefano-mongo

@jdestefano-mongo jdestefano-mongo commented Feb 23, 2018

Copy link
Copy Markdown
Contributor

…den: true' property to hide tab strips. Added 'tabs-top' directive to pull tab strip to the top of the page.


This change is Reviewable

@jdestefano-mongo

Copy link
Copy Markdown
Contributor Author

MUST BE MERGED WITH:
mongodb/docs#3241

@i80and i80and left a comment

Copy link
Copy Markdown
Contributor

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

this.type = null;
if (this.tabStrip !== null) {
this.type = this.tabStrip.getAttribute('data-tab-preference');
if (this.tabStrips !== null) {

Copy link
Copy Markdown
Contributor

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) {


setup() {
if (!this.tabStrip) { return; }
if (!this.tabStrips) { return; }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See above


update() {
if (!this.tabStrip) { return; }
if (!this.tabStrips) { return; }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See above

@i80and i80and left a comment

Copy link
Copy Markdown
Contributor

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.
@jdestefano-mongo jdestefano-mongo merged commit cb54d03 into mongodb:master Feb 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants