anjlab / bootstrap-rails

Twitter Bootstrap CSS (with Sass flavour) and JS toolkits for Rails 3 projects
https://github.com/anjlab/bootstrap-rails
729 stars 96 forks source link

Fix ie_hex_str for HTML4 colors #11

Closed bgarret closed 12 years ago

bgarret commented 12 years ago

Sass::Script::Color#to_s returns the human readable form when it belongs to the set of HTML4 colors.

This means that the following:

ie_hex_str(#ffffff)

will return:

#ffwhite

This breaks the btn and breadcrumb classes on IE (among others).

bgarret commented 12 years ago

I took the liberty of adding some tests, related to the current bug fix. I used the default ruby test framework and I can confirm they pass both on ruby 1.9.2 and 1.8.7.

yury commented 12 years ago

@bgarret, thanks!