Open whitestranger7 opened 2 years ago
@whitestranger7, The bug is caused by React.cloneElement inside commit. same issue
@whitestranger7 @dVaytul are you guys sure the problem is in mappings? for me it looks that size
variant just overrides that font size that you declared in status
variant group. I think that behaviour is defined by order of variant groups, so the latest one applied can override values of previously applied variants.
can you share more details on this issue?
š Bug Report
When using
Button
component, mapping providetextFontSize
for setting upfontSize
for text inside button. Yet, looks like mappings doesn't work for this particular property. When trying to set up differenttextFontSize
- it's always applies default value, which if16
.It should work, since
textFontSize
gets from eva mapping here. But that value always returns16
.Might related to eva package instead!
To Reproduce
Steps to reproduce the behavior: Create button component and try to modify mapping by changing
textFontSize
. Get button element ref and check what value eva returnsExpected behavior
Mapping should get correct value.
UI Kitten and Eva version
Environment information