Skip to content

Refactor classNames property to FazElement and update FazAlert/FazBadge usage #28

@piraz

Description

@piraz

Implement a basic classNames property in FazElement to centralize class name generation logic. Move repetitive classNames properties from FazAlert and FazBadge to use the one implemented by FazElement. Child elements (FazAlert, FazBadge) should implement baseClass (empty by default on FazElement) and classPrefix properties to allow for customization.

Tasks:

  • Add classNames property to FazElement
  • Remove duplicate classNames logic from child elements(i.e FazAlert and FazBadge)
  • Implement baseClass (default: empty) in FazElement, override in child components as needed
  • Implement classPrefix property in child components
  • Update usages and documentation/comments where applicable

This will reduce code duplication and improve maintainability of the codebase.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions