Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

fix(tabs docs): remove uib-tab's "active" setting #5608

Closed

Conversation

ivanvoznyakovsky
Copy link
Contributor

after #5425 uib-tab documentation was not updated properly

@ivanvoznyakovsky ivanvoznyakovsky changed the title fix(tabs docs): remove uib-tab's 'active' setting fix(tabs docs): remove uib-tab's "active" setting Mar 9, 2016
@wesleycho
Copy link
Contributor

LGTM - thanks for the catch.

@wesleycho
Copy link
Contributor

Merged via f2004a9

@wesleycho wesleycho closed this Mar 9, 2016
@icfantv
Copy link
Contributor

icfantv commented Mar 9, 2016

@wesleycho wait a second. we added that as part of the bug fix for moving the active state to the tabset. This should not have been merged. We updated the comment correctly. This should be put back in.

@RobJacobs
Copy link
Contributor

Looks like the scope active variable is used internally to set the TWBS active class in the controller select function here and here I don't think this should be documented as a publicly available attribute as I don't see how it could be used to report if the tab is active or not?

We should remove a reference to that in the docs here

@icfantv
Copy link
Contributor

icfantv commented Mar 9, 2016

I should have said it was modified as part of the tabset changes for the 1.2.2 release. @RobJacobs, it's used for CSS. Previously, it was used to actually set the tab's state to active, but that was moved to the tabset element. I still think it's a valid attribute for documentation.

@RobJacobs
Copy link
Contributor

@icfantv That's where I'm confused, I know the uibTab template uses uibTab scope.active variable to apply the TWBS active class, but how would a developer use that scope variable? And if they can't, does it make sense to document it?

@icfantv
Copy link
Contributor

icfantv commented Mar 10, 2016

In a custom template/controller/directive, could they not ask hasClass('active')? Again, if you guys don't think this is worth it, I'll acquiesce.

@RobJacobs
Copy link
Contributor

Is that what the documentation blurb that was removed is describing? To me, it looks like it was saying you could use the active attribute to do something with the css, which I don't believe is correct?

@icfantv
Copy link
Contributor

icfantv commented Mar 10, 2016

My intention was to indicate that the attribute was for CSS purposes only - meaning that it was there for CSS styling.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants