Rationale behind style props like padding
for components like ListBoxItem
?
#957
-
Currently there are multiple ways of providing a padding to the
Any user who did not know about the helper prop PS: Note that since the default value of this prop is |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
@endigo9740 thoughts, please 😄 |
Beta Was this translation helpful? Give feedback.
-
Sorry, this one got past me somehow. This was a user requested change. They wanted a way to set the child padding once on the parent and have it inherited down.
Is IntelliSense not working for you? We've put a lot of work into ensuring that this information is passed to the IntelliSense popups so you don't have to check the docs for each prop setting.
I'd have to test this to confirm that, but unfortunately that's how Tailwind inheritance works sometimes. Overall I agree there's some room for improvement here to meet expectations. We've been slowly moving towards setting child settings on on the children only rather than passing everything down through the parent. I'd welcome a feature request for this - but it would need to be a wide reaching change that affects any and all components that use the parent/child component strategy (there's a number of these) |
Beta Was this translation helpful? Give feedback.
Sorry, this one got past me somehow. This was a user requested change. They wanted a way to set the child padding once on the parent and have it inherited down.
Is IntelliSense not working for you? We've put a lot of work into ensuring that this information is passed to the IntelliSense popups so you don't have to check the docs for each prop setting.