Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix .toggle-all checkbox was hidden #761

Merged
merged 1 commit into from
May 14, 2017
Merged

fix .toggle-all checkbox was hidden #761

merged 1 commit into from
May 14, 2017

Conversation

huguangju
Copy link
Contributor

see tastejs/todomvc-app-css#8.

todomvc-app-css upgraded version to 2.1.0, "todomvc-app-css": "^2.0.6" in vuex's package.json will download latest version, .toggle-all class has a big change, causing it to be hidden in todomvc example.

@@ -13,10 +13,11 @@
</header>
<!-- main section -->
<section class="main" v-show="todos.length">
<input class="toggle-all"
<input class="toggle-all" id="toggle-all"
Copy link
Member

@posva posva Apr 29, 2017

Choose a reason for hiding this comment

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

where does the id come from? It's not on the todomvc repo

Copy link
Contributor Author

@huguangju huguangju Apr 30, 2017

Choose a reason for hiding this comment

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

Yes, it's not. The checkbox arrow(.toggle-all) need a label tag next to it, and can't be wrapped with label, because it was written like this in todomvc-app-css:

.toggle-all + label:before {
    content: '❯';
    font-size: 22px;
    color: #e6e6e6;
    padding: 10px 27px 10px 27px;
}

Then if i want to click the arrow and trigger the event, need to bind the label tag to input with the for attribute, so i set id on input. Is there any other way better than this?

Copy link
Member

Choose a reason for hiding this comment

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

I see, yeah the + doesn't leave us other option here (at least none that I'm aware of)

@ktsn ktsn merged commit cc5fc79 into vuejs:dev May 14, 2017
@ktsn
Copy link
Member

ktsn commented May 14, 2017

Thanks!

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

Successfully merging this pull request may close these issues.

3 participants