https://github.com/dvandersluis/accessible_tooltip
WCAG compliant balloon-style tooltip helper for Rails
https://github.com/dvandersluis/accessible_tooltip
Last synced: about 1 year ago
JSON representation
WCAG compliant balloon-style tooltip helper for Rails
- Host: GitHub
- URL: https://github.com/dvandersluis/accessible_tooltip
- Owner: dvandersluis
- License: mit
- Created: 2013-10-02T20:41:25.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2016-08-05T15:26:12.000Z (almost 10 years ago)
- Last Synced: 2024-10-29T15:06:58.783Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 33.2 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# AccessibleTooltip
Rails helper for creating a balloon style tooltip that is WCAG compliant.
Based on the excellent [CSS tooltips](http://sixrevisions.com/css/css-only-tooltips/) by [Six Revisions](http://sixrevisions.com).
## Installation
Add this line to your application's Gemfile:
gem 'accessible_tooltip'
And then execute:
$ bundle
Or install it yourself as:
$ gem install accessible_tooltip
## Usage
<%= accessible_tooltip(:help, label: "Help Me", title: "Dogs & Foxes") do>
The quick brown fox jumped over the lazy dog.
<% end %>
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request