Skip to content

Conversation

@bourgeoa
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings January 18, 2026 18:54
Copy link

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 introduces CSS custom properties (CSS variables) for theming support in the folder pane, establishing a foundation for the solid-ui themes system. The changes replace hardcoded CSS values with theme-aware CSS variables that include appropriate fallback values.

Changes:

  • Replaced hardcoded CSS values with CSS custom properties (variables) following the --sui-* naming convention
  • Updated peer dependency from solid-ui@^3.0.0 to solid-ui@^3.0.1-11be53b to support the new theme variables

Reviewed changes

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

File Description
src/folderPane.ts Introduces CSS variables for spacing, colors, and sizing properties with fallback values to maintain backward compatibility
package.json Updates solid-ui peer dependency to pre-release version that includes theme variable support
package-lock.json Updates lockfile entries to reflect the new solid-ui and solid-logic peer dependency versions

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

const tr = outliner.propertyTR(dom, st, false)
tr.firstChild.textContent = '' // Was initialized to 'Contains'
tr.firstChild.style.cssText += 'min-width: 3em;'
tr.firstChild.style.cssText += 'min-width: var(--sui-space-2xl, 3em);'
Copy link

Copilot AI Jan 18, 2026

Choose a reason for hiding this comment

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

Using a spacing CSS variable (--sui-space-2xl) for a width property is semantically inconsistent. The min-width property defines a minimum dimension/size, not spacing. Consider using a size-specific variable like --sui-size-2xl or --sui-width-sm instead to maintain clear semantic separation between spacing (margins, padding, gaps) and sizing (width, height) properties in the theme system.

Suggested change
tr.firstChild.style.cssText += 'min-width: var(--sui-space-2xl, 3em);'
tr.firstChild.style.cssText += 'min-width: var(--sui-size-2xl, 3em);'

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.

2 participants