Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Refactor to Foundation Delegation #4814

Closed
@abhiomkar

Description

This is an epic bug to track the tasks related to Foundation Delegation refactor.

Summary

This project aims to increase development speed of wrapping components based on MDC Web foundation in any web framework including Wiz, Angular, React, LitElement etc.

  • By providing guidelines when implementing MDC Foundation class.
  • By refactoring some of the existing code base in MDC Web to follow proposed guidelines.
  • Update documentation on MDC Web based on this pattern.

Goals

Make component wrapping layer thin.

  1. Establish foundation pattern where component delegates all its APIs and event callbacks to foundation which in turn calls adapter APIs to perform framework-specific DOM manipulations or state changes.

Indirectly takes care of pending tech debts in MDC Web:

  1. Establish a pattern for event handling callbacks in foundation.

  2. Individual component class per variant where applicable.

Prototype

Here is the initial prototype of MDC Checkbox with this pattern.

Metadata

Assignees

No one assigned

    Labels

    EpicUnresolved (Archived)Open and unresolved issues and PRs that were closed due to archiving the repository.backlog

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions