You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I guess you have decided 'class' is the way of the future, or more cross platform (which is true). It may be a stumbling block for many react developers however.
Since React doesn't yet support class, would it make sense to allow className on that platform? Otherwise im mixing the two attributes depending on the element
Im finding that styling the IonCard at all (via class or className (typing as any)) produces unexpected renders. My dom is rendering visibilities incorrectly. Maybe the way class integrates with react currently is unsupported, and therefore stencil's approach is dangerous. more testing is needed
I am going to create some tests around being about support className and css in js solutions. Leaving this open as a bug to ensure I have a narrative on how they can be used.
Reacted by suliman twfiq, Nathan Farkash, Valentin, Karolis Kazlauskis and Patrick Hillert
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Activity
tonypee commentedon Apr 4, 2019
It seems that the root of this, is in the stencil library where the definition of JSX.HTMLAttributes only allows 'class' not 'className'.
React may soon support className AND class . (react/react#13525 (comment)).
I guess you have decided 'class' is the way of the future, or more cross platform (which is true). It may be a stumbling block for many react developers however.
solution: USE CLASS
tonypee commentedon Apr 4, 2019
Since React doesn't yet support class, would it make sense to allow className on that platform? Otherwise im mixing the two attributes depending on the element
tonypee commentedon Apr 5, 2019
Im finding that styling the IonCard at all (via class or className (typing as any)) produces unexpected renders. My dom is rendering visibilities incorrectly. Maybe the way class integrates with react currently is unsupported, and therefore stencil's approach is dangerous. more testing is needed
[-]React Components should extend HtmlDivElement[/-][+]React Components should support className[/+]SulimanTwfiq commentedon Apr 8, 2019
i have the same issue. CSS in JS doesn't work too.
jthoms1 commentedon Apr 18, 2019
I am going to create some tests around being about support className and css in js solutions. Leaving this open as a bug to ensure I have a narrative on how they can be used.
elylucas commentedon May 8, 2019
Fixed in #18231. Thanks!
ionitron-bot commentedon Jun 7, 2019
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.