Skip to content

docs: add component class mixing guidelines#5737

Open
santiagopalma12 wants to merge 1 commit intocanonical:mainfrom
santiagopalma12:docs/component-class-mixing
Open

docs: add component class mixing guidelines#5737
santiagopalma12 wants to merge 1 commit intocanonical:mainfrom
santiagopalma12:docs/component-class-mixing

Conversation

@santiagopalma12
Copy link

Closes #5413

This PR adds documentation explaining that component class names should not be mixed on the same element.

Changes

  • Added a new "Component Class Mixing" section to the "Building with Vanilla" documentation
  • Included recommended usage examples showing proper component nesting
  • Provided rationale for why this convention matters (predictability, maintainability, consistency)

Context

As noted in #5413, Vanilla has an unspoken style rule that component class names should not be mixed. This PR formalizes that convention in the documentation to help users avoid unexpected styling issues.

Closes canonical#5413

Added documentation explaining that component class names should not be mixed on the same element. Includes recommended usage examples and rationale for this convention.
@webteam-app
Copy link

santiagopalma12 is not a collaborator of the repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document Component Class Mixing

2 participants