doabit / semantic-ui-sass

Semantic UI, converted to Sass and ready to drop into Rails & Compass.
MIT License
1.15k stars 192 forks source link

ID option for `semantic_icon` helper #60

Closed kntmrkm closed 8 years ago

kntmrkm commented 8 years ago

I want to add ID attr to semantic_icon helper.

like below...

= semantic_icon :some, { id: 'some-id' }
# => <i class='some icon' id='some-id'>

How do u think?

thanks.

doabit commented 8 years ago

@kntmrkm I've updated to add id attr to semantic_icon helper, you can try with the master branch.

semantic_icon('add', id: 'id')
# => <i class="add icon" id="id"></i>
kntmrkm commented 8 years ago

Thanks for your quick response!

It works! great!