Skip to content

Commit

Permalink
Fix modifier class name generation
Browse files Browse the repository at this point in the history
Should now correctly expand multiple class names or pseudo classes in a
given rule. So ".disabled.mousdown" will now accurately expand to
"disabled mousedown"
  • Loading branch information
kneath committed Dec 11, 2011
1 parent e2d2453 commit 14b677c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kss/modifier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def initialize(name, description=nil)
#
# Returns a CSS class String.
def class_name
name.sub('.', ' ').sub(':', ' pseudo-class-').strip
name.gsub('.', ' ').gsub(':', ' pseudo-class-').strip
end

end
Expand Down

0 comments on commit 14b677c

Please sign in to comment.