Skip to content

Rename .active to .show - #21036

Merged
mdo merged 2 commits into
twbs:v4-devfrom
Starsam80:fix-20982
Dec 20, 2016
Merged

mdo merged 2 commits into
twbs:v4-devfrom
Starsam80:fix-20982

Conversation

@Starsam80

@Starsam80 Starsam80 commented Oct 27, 2016 •

Copy link
Copy Markdown
Contributor

Fixes #21021.

Also fixes tabs by changing .in to .show

Comment thread js/tests/unit/tooltip.js Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Statement inside of curly braces should be on next line brace-style
Closing curly brace should be on the same line as opening curly brace or on the line after the previous block brace-style
This line has 2 statements. Maximum allowed is 1 max-statements-per-line
Expected '===' and instead saw '==' eqeqeq

Comment thread js/tests/unit/tooltip.js Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Expected '===' and instead saw '==' eqeqeq

Comment thread js/tests/unit/dropdown.js Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'QUnit' is not defined no-undef
Unexpected function expression prefer-arrow-callback

Comment thread js/tests/unit/dropdown.js Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'QUnit' is not defined no-undef
Unexpected function expression prefer-arrow-callback

Comment thread js/tests/unit/dropdown.js Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'QUnit' is not defined no-undef
Unexpected function expression prefer-arrow-callback

Comment thread js/tests/unit/collapse.js Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Unexpected var, use let or const instead no-var

Comment thread js/tests/unit/collapse.js Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Expected indentation of 6 space characters but found 10 indent

Comment thread js/tests/unit/alert.js Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Unexpected var, use let or const instead no-var

Comment thread js/tests/unit/alert.js Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Unexpected var, use let or const instead no-var

@mdo

mdo commented Oct 28, 2016

Copy link
Copy Markdown
Member

I think this will run into similar issues as the .show/.hide business from jQuery? Was that a thing?

@Starsam80

Starsam80 commented Oct 28, 2016 •

Copy link
Copy Markdown
Contributor Author

Just tried it, and all it does is add style="display: none;". The closest issue I could find is #9881

@Starsam80

Copy link
Copy Markdown
Contributor Author

Ah, it looks like the jQuery .show() & .hide() thing affects the [hidden] attribute, not any of the classes. https://v4-alpha.getbootstrap.com/content/reboot/#html5-hidden-attribute

Comment thread docs/components/navs.md Outdated

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.

show and active?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Think of .show as it "showing" the fade animation, while .active is the one that is currently selected.

@mdo mdo added js JavaScript or TypeScript sources and plugins v4 v4, the frozen docs on gh-pages labels Oct 29, 2016
@Mevrael

Mevrael commented Nov 4, 2016 •

Copy link
Copy Markdown

Right now in dev branch I see that fade animation has now fade active instead of in. However, that wouldn't allow to add animation to tabs, for example, which already has active state.

So what class name is going to be used instead of fade in?

Same question about active for tabs, navs, etc.

P.S. talking about selected (active) states, may be, it is better to use [aria-selected] instead? @mdo

@Starsam80

Copy link
Copy Markdown
Contributor Author

So what class name is going to be used instead of fade in?

fade show

Same question about active for tabs, navs, etc.

As far as I know, the active class will stay the same for tabs, navs, navbars, etc.

Comment thread js/tests/unit/tooltip.js Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Statement inside of curly braces should be on next line brace-style
Closing curly brace should be on the same line as opening curly brace or on the line after the previous block brace-style
This line has 2 statements. Maximum allowed is 1 max-statements-per-line
Expected '===' and instead saw '==' eqeqeq

Comment thread js/tests/unit/tooltip.js Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Expected '===' and instead saw '==' eqeqeq

Comment thread js/tests/unit/dropdown.js Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'QUnit' is not defined no-undef
Unexpected function expression prefer-arrow-callback

Comment thread js/tests/unit/dropdown.js Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'QUnit' is not defined no-undef
Unexpected function expression prefer-arrow-callback

Comment thread js/tests/unit/dropdown.js Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

'QUnit' is not defined no-undef
Unexpected function expression prefer-arrow-callback

Comment thread js/tests/unit/collapse.js Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Unexpected var, use let or const instead no-var

Comment thread js/tests/unit/collapse.js Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Expected indentation of 6 space characters but found 10 indent

Comment thread js/tests/unit/alert.js Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Unexpected var, use let or const instead no-var

Comment thread js/tests/unit/alert.js Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Unexpected var, use let or const instead no-var

@Starsam80

Starsam80 commented Nov 24, 2016 •

Copy link
Copy Markdown
Contributor Author

I change 1 line and hound blows up. That really needs to be fixed.

@bardiharborow

Copy link
Copy Markdown
Contributor

@Starsam80 that is being worked on.

Comment thread js/tests/unit/collapse.js Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Unexpected var, use let or const instead no-var
All 'var' declarations must be at the top of the function scope vars-on-top

Comment thread js/tests/unit/alert.js Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

All 'var' declarations must be at the top of the function scope vars-on-top
Unexpected var, use let or const instead no-var

Comment thread js/tests/unit/alert.js Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

All 'var' declarations must be at the top of the function scope vars-on-top
Unexpected var, use let or const instead no-var

Comment thread js/src/dropdown.js Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Parsing error: Unexpected token

@mdo mdo mentioned this pull request Nov 28, 2016
7 tasks done
@mdo mdo added this to the v4.0.0-alpha.6 milestone Nov 28, 2016
@TheBuzzer67

Copy link
Copy Markdown

I think Collapse should be .in, popover .show and collapse .active if we want a certain logic and it will correct the conflict!!

@Starsam80

Starsam80 commented Dec 8, 2016 •

Copy link
Copy Markdown
Contributor Author

@TheBuzzer67 Wait you mean the "Conflicting files"? I can fix that anytime, but when I do, hound will probably blow up again.

EDIT: Huh, it didn't this time. I will never understand how it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

js JavaScript or TypeScript sources and plugins v4 v4, the frozen docs on gh-pages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants