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

[Bootstrap v4] Generate Tooltips from the $theme-colors map #9

Closed
andreivictor opened this issue Jan 10, 2020 · 1 comment
Closed
Assignees

Comments

@andreivictor
Copy link
Owner

As seen on:
https://getbootstrap.com/docs/4.4/getting-started/theming/#components

Apply the same logic that is used by Bootstrap team to generate modifiers to the components (alerts, badges, buttons).

We'll generate tooltips from the $theme-colors map:

@each $color, $value in $theme-colors {
  .tooltip-#{$color} {
    @include tooltip-custom($value, color-yiq($value));
  }
}
@andreivictor
Copy link
Owner Author

Implemented in #11.

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

1 participant