Skip to content

Comments

chore: Add DocFX alert block styling to documentation template#22253

Closed
Copilot wants to merge 1 commit intodev/juno/content-block-color-updatefrom
copilot/sub-pr-22211
Closed

chore: Add DocFX alert block styling to documentation template#22253
Copilot wants to merge 1 commit intodev/juno/content-block-color-updatefrom
copilot/sub-pr-22211

Conversation

Copy link
Contributor

Copilot AI commented Jan 5, 2026

GitHub Issue: closes #21787

PR Type:

  • 📚 Documentation content changes

What is the current behavior? 🤔

DocFX alert blocks (NOTE, TIP, IMPORTANT, WARNING, CAUTION) in documentation lack visual distinction and styling, making them blend in with regular content.

What is the new behavior? 🚀

Alert blocks now have color-coded backgrounds and left borders:

  • NOTE/TIP: Blue theme ($blue with lightened background)
  • IMPORTANT/WARNING: Orange theme ($orange with lightened background)
  • CAUTION: Red theme ($red with lightened background)

Implementation uses a SCSS mixin to eliminate code duplication:

@mixin alert-block($bg-color, $border-color, $text-color) {
  background-color: $bg-color;
  border-left: 4px solid $border-color;
  padding: 16px 20px;
  margin: 16px 0;
  border-radius: 4px;
  // ...
}

Background colors are derived using lighten() function from existing color variables for maintainability.

PR Checklist ✅

Please check if your PR fulfills the following requirements:

Other information ℹ️

Preview available at: https://unodocsprstaging.z13.web.core.windows.net/pr-22211/docs/index.html


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI mentioned this pull request Jan 5, 2026
5 tasks
Copilot AI changed the title [WIP] Update content block color to resolve issue chore: Add DocFX alert block styling to documentation template Jan 5, 2026
Copilot AI requested a review from Jen-Uno January 5, 2026 18:26
@Jen-Uno Jen-Uno marked this pull request as ready for review January 5, 2026 18:29
@Jen-Uno Jen-Uno closed this Jan 5, 2026
@Jen-Uno Jen-Uno deleted the copilot/sub-pr-22211 branch January 5, 2026 18:30
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.

2 participants