Skip to content

Class name standards #81

@mwarman

Description

@mwarman

Description

Add the ls- class name for all components. This prefix was adopted as a standard and newer components have applied it; however, older components do not use the prefix.

Class names should use the following naming convention. They should:

  • use kebab case, e.g. this-is-kebab-case
  • be prefixed with ls-, i.e. for LeanStacks
  • use the component name as the base class for the outermost block of the component
  • extend the base class name for inner components

For example, the Header component should have the class ls-header on the outermost block element. The title block within the header should use class name ls-header-title.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions