Suggestion: reorder params for border #255
aileksandar
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
Agreed, but You can predefine the following export default {
classes: {
border: 'border:1 border:solid'
}
} Apply it: <div class="border border:gray"> |
Beta Was this translation helpful? Give feedback.
1 reply
-
How did you get it to work with RN? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been using master css extensively, I've even made my own variation for React Native because the syntax and convention makes a lot of sense.
The thing that makes more sense to me is to have a different ordering when it comes to border.
Currently is
border:size|style|color
so you use it likeborder:1|solid|gray
, but I realized it makes a lot of clutter because:style: solid is 99% of the time
size: 1px is 50% of the time
color: I update the color 100% of the time
So it makes more sense for me to be
border:color|size|style
since the size and style would very often be default and make my code fromborder:1|solid|gray
toborder:gray
I think v2 is a good time to introduce this kind of breaking change.
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions