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

How to control width of ONE tooltip? #161

Closed
rstudner opened this issue Nov 17, 2016 · 3 comments
Closed

How to control width of ONE tooltip? #161

rstudner opened this issue Nov 17, 2016 · 3 comments

Comments

@rstudner
Copy link
Contributor

I can do:

.tooltip-inner {
  max-width: 500px
}

in my app.scss for ALL tooltips.

But how can I control the width of ONE tooltip?

@simonihmig
Copy link
Contributor

You could assign an individual class and use that as a CSS selector. See https://guides.emberjs.com/v2.9.0/components/customizing-a-components-element/#toc_customizing-the-element-s-class

@rstudner
Copy link
Contributor Author

rstudner commented Nov 17, 2016

Oh, then I must have just botched it hah. I thought I tried that first and the class didn't get applied. I'll try again :)

Like this?

      {{#bs-tooltip class="foobar"}}
        <div style="text-align: center;">Password Requirements:</div>
        <div style="text-align: left;">
          <ul>
            <li>Must include at least one upper case letter, one lower case letter, and a number</li>
            <li>Must be between 4 and 32 characters in length</li>
          </ul>
        </div>
      {{/bs-tooltip}}

Because that doesn't appear to work.

@simonihmig
Copy link
Contributor

Oh, yeah, I guess you are right... should have thought about it a little bit more. The tooltip is inserted at some other place in the DOM through ember-wormhole, therefore this won't work.

This needs some changes in code, will make this a feature request. Should be pretty easy to add...

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