fix(class): allow class names with mixed case#3264
fix(class): allow class names with mixed case#3264pkozlowski-opensource wants to merge 1 commit intoangular:masterfrom
Conversation
|
@tbosch I've moved the normalization of class names to the ProtoViewBuilder so we are not messing with the casing for class names that come from JS (class directive or host properties). IMO we could / should do this with attribute and style names as well, but wanted to check with you first. Could you PTAL? |
|
This looks good, the only question is which interface we want to provide for people that use the Having said this, we also have issues with the auto camel casing (#3001). So yes, let's do it, but please mark this as a |
|
@tbosch I would say that the renderer shouldn't touch CSS class casing (hence this change, that was done to fix #3001). We do those case-converting massaging only to handle Agree that it is a breaking change, will mark as one (although I don't think it is going to break peoples code, hopefully) |
|
Should we merge this as is or wait for more changes to come? |
Fixes angular#3001 BREAKING CHANGE: View renderer used to take normalized CSS class names (ex. fooBar for foo-bar). With this change a rendered implementation gets a calss name as specified in a template, without any transformations / normalization. This change only affects custom view renderers that should be updated accordingly.
cba0980 to
e317c7b
Compare
|
@tbosch I've updated the commit message to add info about the breaking change. Let's land this one so it doesn't become bit-rotten - I will take care of attributes and styles in a separate PR. |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Fixes #3001