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

Feature request: support checkbox in menu-badge #545

Open
zwz opened this issue Dec 3, 2018 · 2 comments
Open

Feature request: support checkbox in menu-badge #545

zwz opened this issue Dec 3, 2018 · 2 comments

Comments

@zwz
Copy link

zwz commented Dec 3, 2018

I was build a shopping cart.
There was a list of stuff. I listed the titles of them with menu, with the price in the badge.
When an item is selected, detail information will be shown, but not added to the cart.

I want to use checkbox to indicate if it is added to the cart or not.
What I thought is to put the checkbox in the menu-badge, and one can click the price to add it to the cart.

But with

                <div class="menu-badge">
                    <label class="form-checkbox">
                        <label class="label label-primary label-rounded">
                            $10.00
                            <input  type="checkbox">
                            <i class="form-icon"></i>
                        </label>
                    </label>
                </div>

the checkbox is outside of the badge. While with

                <div class="menu-badge">
                    <label class="label label-primary label-rounded">
                        <label class="form-checkbox">
                            $10.00
                            <input  type="checkbox">
                            <i class="form-icon"></i>
                        </label>
                    </label>
                </div>

the height of the badge is too large.

@picturepan2
Copy link
Owner

@zwz This feature is added to Menu now. Could you confirm it is what you need?

@zwz
Copy link
Author

zwz commented Jan 7, 2019

@picturepan2 Quite close. When the text of the menu item is long enough (multiple line), the checkbox would overlay the text. And I want the badge has some background, so I add "label label-primary" class on the badge, but then it behaves a little different from a normal badge on a multiple-line menu-item. Its height is enlarged.

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

No branches or pull requests

2 participants