Focus styles for side panel buttons & form elements - #250
Conversation
WalkthroughRefactors focus-state styling by replacing per-input focus variables ( Changes
Sequence Diagram(s)sequenceDiagram
participant AppCSS as app.css (tokens)
participant Component as Component CSS
participant Browser as Browser (focus event)
Browser->>Component: element receives :focus
Component->>AppCSS: reads --inn-focus-* tokens
AppCSS-->>Component: provides border/outline/shadow values
Component-->>Browser: applies focus border / shadow / outline
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 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 |
|
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
ExampleApp/wwwroot/css/app.css(3 hunks)Src/Innovative.Blazor.Components/Components/Form/InnovativeForm.razor.css(2 hunks)Src/Innovative.Blazor.Components/Components/SidePanel/SidePanelComponent.razor.css(4 hunks)
🚧 Files skipped from review as they are similar to previous changes (2)
- ExampleApp/wwwroot/css/app.css
- Src/Innovative.Blazor.Components/Components/Form/InnovativeForm.razor.css
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-08-12T08:54:04.127Z
Learnt from: DphnZwp
Repo: innovative365nl/SharedBlazorCompoments PR: 159
File: ExampleApp/wwwroot/css/app.css:121-135
Timestamp: 2025-08-12T08:54:04.127Z
Learning: In the Innovative Blazor Components design system, there are intentionally two border variants: --innov-border-1-dark for prominent UI components that need attention (inputs, dropdowns, html editor) and --innov-border-1-light for subtle/unobtrusive elements like table dividers.
Applied to files:
Src/Innovative.Blazor.Components/Components/SidePanel/SidePanelComponent.razor.css
🪛 Biome (2.1.2)
Src/Innovative.Blazor.Components/Components/SidePanel/SidePanelComponent.razor.css
[error] 88-88: Unexpected unknown pseudo-elements: deep
See MDN web docs for more details.
Use a known pseudo-elements instead, such as:
(lint/correctness/noUnknownPseudoElement)
[error] 114-114: Unexpected unknown pseudo-elements: deep
See MDN web docs for more details.
Use a known pseudo-elements instead, such as:
(lint/correctness/noUnknownPseudoElement)
[error] 140-140: Unexpected unknown pseudo-elements: deep
See MDN web docs for more details.
Use a known pseudo-elements instead, such as:
(lint/correctness/noUnknownPseudoElement)
🔇 Additional comments (2)
Src/Innovative.Blazor.Components/Components/SidePanel/SidePanelComponent.razor.css (2)
88-88: Static analysis warnings are false positives for Blazor context.Biome reports "Unexpected unknown pseudo-elements: deep" at lines 88, 114, and 140. The
::deepcombinator is valid Blazor/Vue.js syntax for piercing component encapsulation scopes. These warnings can be safely ignored or suppressed if a linter configuration is available.Also applies to: 114-114, 140-140
55-62: Focus styling implementation aligns with PR objectives.The addition of consistent focus styling across
.sidepanel-icon-button, primary, secondary, and danger button variants reflects the PR's goal to consolidate focus tokens. The refactoring from per-input focus variables to centralized--inn-focus-*tokens improves maintainability and design system consistency.Also applies to: 88-95, 114-121, 140-148



Alle elementen hebben tenminste deze focus css code nodig
Nieuwe focus ontwerpen


Oude ontwerpen


Summary by CodeRabbit
Style
Refactor