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
Unfortunately, it doesn’t. border: 'text' doesn’t render anything.
Describe the solution you'd like
It would be nice if that was supported.
Describe alternatives you've considered
I can hardcode the value like this:
borders: {
text: '1px solid black',
},
But in this case, the text color changes depending on the color mode, so instead of border: 'text' in my sx prop, I have no choice but to do border: (theme) => '1px solid ${theme.colors.text}' every time I want such a border. Not ideal.
Additional context
Thank you so much!
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I was expecting the following to work in my theme object:
Unfortunately, it doesn’t.
border: 'text'
doesn’t render anything.Describe the solution you'd like
It would be nice if that was supported.
Describe alternatives you've considered
I can hardcode the value like this:
But in this case, the
text
color changes depending on the color mode, so instead ofborder: 'text'
in mysx
prop, I have no choice but to doborder: (theme) => '1px solid ${theme.colors.text}'
every time I want such a border. Not ideal.Additional context
Thank you so much!
The text was updated successfully, but these errors were encountered: