Replies: 14 comments 5 replies
-
We've seen that exporting base classes from pfe can cause headaches when types don't line up or where features are not exactly congruent, and in other circumstances. Having each component start from So from that perspective, alternatives to base classes are preferred:
I think it's worth paying that price to avoid the maintenance / complexity problems described above. As the design systems mature, we can work in a measured way to reduce duplication of code, but that shouldn't be the top priority - how often will |
Beta Was this translation helpful? Give feedback.
-
Accordion |
Beta Was this translation helpful? Give feedback.
-
Clipboard Copy |
Beta Was this translation helpful? Give feedback.
-
A place for a discussion around the removal of Base classes.
We had good intentions with the Base classes, but we have been leaning towards their removal where it makes more sense to replace shared logic with controllers.
However there are certain cases where lighter weight components such as
pf-label
,pf-badge
that might not need or have any logic to abstract to a controller, whereas components likepf-tabs
andpf-accordion
do.An example of this abstraction can be found in the tabs controller PR #2577
There is a couple questions I asked there:
I am now working on the simple
pf-banner
component and I'm hesitant to create Base classes for the component. #2579Do components like this that lack the complexity need to provide that surface to extend upon? Does adding the Base classes in turn increase the overhead of maintenance of those components long term?
Beta Was this translation helpful? Give feedback.
All reactions