[Accordion] Do we really need padding prop?
#1266
|
Since we recently launched the new Layout components, do we want to keep this kind of props or should we start suggesting using, in this case, the Inset component for a more semantic layout? |
Replies: 5 comments 2 replies
|
Good point, I also think we should use the DxcInset. We should check the rest of the components to apply this change too. |
|
I totally agree. Now that we have layout components, it is a good point to remove |
|
As much as I love using the Layout components, (they make easier the life of a CSS ignorant like me), removing the padding prop from the Accordion is a breaking change, isn't it? We must be careful with these changes. Moreover, if we consider applying this change across all DS components. Let's think about it. |
|
I agree with using the DxcInset component within our components and removing the prop padding; I would go further and also replace the prop margin by using one of our layout components. Even if it´s a breaking change I think it´s something that we should use to give more consistency and make use of the components in the same way that we want the users to use them. I know it´s a breaking change but as we always said, I see the Design System as something alive and evolving. As well as I think that the use of DxcInset within the components is a good idea, I think that we should use our Typography components within the rest of the components. For example, use the DxcTypography component for component labels. |
|
As we are all more or less in agreement, we can start removing the |
As we are all more or less in agreement, we can start removing the
paddingprop from the DS components and discuss if we want to preserve other related ones such asmargin.