Skip to content

flip left and right on tooltips and popovers [#67]#75

Open
mapmeld wants to merge 1 commit intomorteza:masterfrom
slang-group:rtl-tooltips-and-popovers
Open

flip left and right on tooltips and popovers [#67]#75
mapmeld wants to merge 1 commit intomorteza:masterfrom
slang-group:rtl-tooltips-and-popovers

Conversation

@mapmeld
Copy link

@mapmeld mapmeld commented May 9, 2015

hi,
here is my idea for how to flip left and right on tooltips and popovers in Bootstrap 3.x (fixing #67). It requires adding code to Bootstrap's JavaScript library too, so I'm not sure how you would want to organize /dist/js or the examples/originals/dist folder.

Main changes:

  • added a js/bootstrap-rtl-addons.js which patches in a right-left change to Tooltip and Popover plugins
  • added grunt-contrib-uglify package and task, so the build will create a bootstrap-rtl.min.js file
  • for arrow.left to become RTL, use styles from the LTR arrow.right and overwrite LTR's arrow.left styles. Repeated for arrow.right
  • include tooltip.less in the files checked by bootstrap.less

@morteza morteza added this to the v3.3.4 milestone May 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants