Skip to content

Docs: note that .card-title and .card-text add no styles - #43100

Closed
kukirin-ui wants to merge 1 commit into
twbs:mainfrom
kukirin-ui:docs/card-title-hooks
Closed

kukirin-ui wants to merge 1 commit into
twbs:mainfrom
kukirin-ui:docs/card-title-hooks

Conversation

@kukirin-ui

Copy link
Copy Markdown

Description

Clarifies the "Titles, text, and links" section of the card docs: .card-title and .card-text are content hooks only and add no styles in v6. The page now says so next to each class and points to type and color utilities for styling.

Motivation & Context

The card page says "For a title, use .card-title." but _card.scss no longer has a rule for it, so it reads as if styles are missing. The removal was intentional and the migration guide already says these classes "remain available as project hooks but no longer add styles". This brings the component page in line with that.

npm run lint: docs, prettier and css lint pass; js-lint fails the same way on unmodified main.

Type of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (non-breaking change)
  • Breaking change (fix or feature that would change existing functionality)

Checklist

  • I have read the contributing guidelines
  • My code follows the code style of the project (using npm run lint)
  • My change introduces changes to the documentation
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed

Related issues

Closes #43094

@julien-deramond julien-deramond added v6 v6, the main branch docs Documentation site and its content labels Oct 16, 2026
@julien-deramond

Copy link
Copy Markdown
Member

Thanks for the PR @kukirin-ui but we'll go with this version instead #43103

@kukirin-ui

kukirin-ui commented Oct 16, 2026 via email

Copy link
Copy Markdown
Author

@kukirin-ui
kukirin-ui deleted the docs/card-title-hooks branch October 16, 2026 16:54
@kukirin-ui
kukirin-ui restored the docs/card-title-hooks branch October 16, 2026 16:54
@kukirin-ui

Copy link
Copy Markdown
Author

No problem, the shorter wording works. Glad the docs are clear now. Happy to pick up another v6 docs issue if you have one in mind.

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

Labels

docs Documentation site and its content v6 v6, the main branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Style rules for .card-title are missing

2 participants