feat: add control over 'parts' when extending fast foundation components #5832
Labels
area:fast-foundation
Pertains to fast-foundation
closed:obsolete
No longer valid
community:noteworthy
An issue or PR of particular interest to the community or planned for an announcement.
community:request
Issues specifically reported by a member of the community.
improvement
A non-feature-adding improvement
status:under-consideration
Issue is being reviewed by the team.
🙋 Feature Request
setting parts on shadowRoot elements makes them exposed for authors to customize (and abuse) easily.
when locking down components to enforce a design system rules is a concern, setting
part
attributes conflicts with that general intention.wondering what other design system maintainers feel about that...
🤔 Expected Behavior
consumers of fast foundation components should be able to decide whether parts should be included in the template or not
There are rare cases where
part
is absolutely required.So the ideal solution would probably be to opt-in (or out) (during component definition phase) to whichever parts needed
😯 Current Behavior
Parts are enforced in templates unless overriding.
💁 Possible Solution
Consumers of components may query all
part
attributes from within the component class and remove 'em programmatically, still this is not ideal as it results in dirty redundant solution that should be probably handled architecturally.I'm not fully keen with how definition of components work but can it be leveraged to
🔦 Context
💻 Examples
The text was updated successfully, but these errors were encountered: