Repository navigation
fix(truth-table): make generator input follow the active colour scheme (#631) - #803
WasThatRudy wants to merge 1 commit into
Conversation
The truth table generator hardcoded 'color: black' on .truth_table_input.
That rule has higher specificity than the theme's 'input { color: $inputcolor }',
so the field ignored the active scheme while its background kept following it,
which is how the typed expression ends up unreadable.
Move the colours to _sass/custom/custom.scss, where the scheme variables are
available, and set the background, border and text colour together so they can
never diverge: white field with black text in the light scheme, dark field with
white text in circuitversedark.
Fixes CircuitVerse#631
| } | ||
|
|
||
| // Fix: truth table generator input follows the active colour scheme (Issue #631) | ||
| .truth_table_input { |
There was a problem hiding this comment.
Selector truth_table_input should be written in lowercase with hyphens
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review. WalkthroughThe truth table input no longer sets its text color to black. Custom Sass now sets its background, border, text, and placeholder colors. Priority: ⬇️ Low Change: Bug fix · Severity of issue fixed: Low Merge Risk: ⚪ Minimal · up to The truth-table input’s theme-color change is ready to merge after normal checks. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 2 systems. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Closing this. I checked the history after opening it: 4a3a865 (PR #703) already fixed the reported dark-mode visibility problem by setting |
Fixes #631
What was wrong
_includes/truth_table.htmlhardcodedcolor: blackon.truth_table_input:The theme already colours inputs per scheme (
input { color: $inputcolor }in_sass/custom/custom.scss, with$inputcolor: #000000incircuitverse.scssand#ffffffincircuitversedark.scss). The class selector outranks the element selector, so the generator field kept black text no matter which scheme was active, while nothing pinned its background. Text colour fixed and background not fixed is exactly how the typed expression ends up unreadable.What this does
Moves the colours to
_sass/custom/custom.scss, where the scheme variables are in scope, and sets background, border and text colour together so they cannot diverge:Light scheme: white field, black text.
circuitversedark: dark field, white text. The placeholder is dimmed rather than left at the browser default so it stays legible on both backgrounds.The inline
<style>block in the include keeps the layout rules (width, padding, font) and drops only the colour line.How to check
bundle exec jekyll serve/docs/logic-design/canonical.htmland scroll to the Truth Table Generator.(AB)'C+D. The value is visible.No JS or markup changes, so nothing else on the page is affected.
Summary by CodeRabbit