Skip to content

Conversation

@github-actions
Copy link
Contributor

This PR generated automatically to merge dev with rel-10.0. Please review the changed files before merging to prevent any errors that may occur.

@github-actions github-actions bot requested a review from maliming December 29, 2025 05:38
@maliming maliming marked this pull request as ready for review December 29, 2025 05:38
Copilot AI review requested due to automatic review settings December 29, 2025 05:38
@maliming maliming merged commit 7b15e73 into dev Dec 29, 2025
2 checks passed
@maliming maliming deleted the auto-merge/rel-10-0/4219 branch December 29, 2025 05:38
github-actions bot added a commit that referenced this pull request Dec 29, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR automatically merges the dev branch into rel-10.0, adding new documentation for LeptonX CSS variables. The changes introduce comprehensive documentation explaining how to customize the LeptonX theme using CSS custom properties.

Key Changes:

  • Adds new LeptonX CSS Variables documentation with variable reference tables and usage examples
  • Updates the documentation navigation to include the new CSS variables guide

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
docs/en/framework/ui/common/leptonx-css-variables.md New documentation file explaining LeptonX CSS variables, their purposes, and override patterns
docs/en/docs-nav.json Adds navigation entry for the new LeptonX CSS variables documentation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

| Variable | Description |
|----------|-------------|
| `--lpx-brand` | Brand-specific accent color |
| `--lpx-brand-text` | Text color used on brand-colored backgrounds |
Copy link

Copilot AI Dec 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable --lpx-brand-text is listed in the "Brand & Semantic Colors" table but is never shown in any of the code examples (Global Override, Theme-Scoped Override, or Component/Page-Specific Override). This creates inconsistency in the documentation where a variable is described but never demonstrated, leaving users uncertain about how to use it.

Copilot uses AI. Check for mistakes.
Applies only when a specific theme class is active (e.g., `.lpx-theme-dark` on `<html>` or `<body>`):

```css
:root .lpx-theme-dark {
Copy link

Copilot AI Dec 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CSS selector :root .lpx-theme-dark is incorrect. This selector looks for an element with class lpx-theme-dark that is a descendant of :root, which doesn't make sense since :root is the top-level element. The correct selector should be either .lpx-theme-dark (if the class is applied to <html> or <body>) or :root.lpx-theme-dark (if the class is applied directly to the root element).

Suggested change
:root .lpx-theme-dark {
.lpx-theme-dark {

Copilot uses AI. Check for mistakes.
Applies only when a specific theme class is active (e.g., `.lpx-theme-dark` on `<html>` or `<body>`):

```css
:root .lpx-theme-dark {
Copy link

Copilot AI Dec 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The documentation states that theme-scoped overrides apply "when a specific theme class is active (e.g., .lpx-theme-dark on <html> or <body>)". However, the CSS selector shown (:root .lpx-theme-dark) does not match this description. The description and the code example are inconsistent. The selector should match the described behavior by using .lpx-theme-dark instead.

Suggested change
:root .lpx-theme-dark {
.lpx-theme-dark {

Copilot uses AI. Check for mistakes.
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.

4 participants