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 requests] In-button Icon #53

Open
goodseller opened this issue Oct 21, 2015 · 2 comments
Open

[Feature requests] In-button Icon #53

goodseller opened this issue Oct 21, 2015 · 2 comments

Comments

@goodseller
Copy link

This feature sees in bootstrap or jquery ui (the style):

https://gyazo.com/1309644b527e99169301e27485c757ee

I did the above prototype by adding (changing?) these lines:

  .btn .icon {
    float: inherit;
    color: inherit;
  }

Toolbar:

      <footer class="toolbar toolbar-footer">
        <div class="toolbar-actions">
          <button class="btn btn-default">
            <span class="icon icon-cancel"></span> Cancel
          </button>

          <button class="btn btn-primary pull-right">
            Send <span class="icon icon-mail"></span>
          </button>
        </div>
      </footer>

(Currently, this is a quick prototype.)

@developit
Copy link
Contributor

Good addition. Just a tip: you can add the icon-text class to the icon so it sits nicely alongside the button's label.

<button class="btn btn-primary">
    <span class="icon icon-text icon-mail"></span>
    Send Message
</button>

@goodseller
Copy link
Author

Thanks @developit . I don't know there was a icon text before.

To support the right side icon, I make a pull request #62

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

3 participants