I would expect the rendered card to have a red border, but it has a black one. This is because the class name generated for borderColor=... comes before the class names from 'Card' in the generated, final class name.
This is the opposite of what I'd expect, is this intentional? I've looked through the code a bit and I must admit that I'm not sure why this happens.
Edit: For clarity, Flex is a Box wrapper; it just sets display and flexDirection and passes on all to the props to the underlying box.
Huh, I rewrote the relevant pieces of code and now it works as I'd expect. Not sure what to make of that but I'm not complaining. Sorry for the noise, everyone.
I would expect the rendered card to have a red border, but it has a black one. This is because the class name generated for
borderColor=...
comes before the class names from 'Card' in the generated, final class name.This is the opposite of what I'd expect, is this intentional? I've looked through the code a bit and I must admit that I'm not sure why this happens.
Edit: For clarity,
Flex
is aBox
wrapper; it just setsdisplay
andflexDirection
and passes on all to the props to the underlying box.