-
Notifications
You must be signed in to change notification settings - Fork 766
WEB-406-fix(css)-improve the css of create-savings-account #2767
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
WEB-406-fix(css)-improve the css of create-savings-account #2767
Conversation
WalkthroughThe pull request adds comprehensive styling to the create-savings-account component, including responsive layout adjustments, vertical stepper customization, form field typography adjustments, button styling enhancements, fade-in animations, and media queries for 768px and 480px breakpoints. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10-15 minutes
Suggested reviewers
Pre-merge checks and finishing touches✅ Passed checks (2 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (2)
src/app/savings/create-savings-account/create-savings-account.component.scss (2)
26-159: Replace:host ::ng-deepwith proper style encapsulation or Material theming API.The extensive use of
:host ::ng-deeppierces Angular's view encapsulation, creating significant maintainability and stability concerns:
- Styles can leak to unintended sibling/parent components
- Creates tight coupling to Material's internal DOM structure, risking breakage on Material updates
- Difficult to debug and reason about style scope
- Violates Angular best practices for component isolation
Consider using:
- Material theming API (preferred): Use
@angular/material/themingfor customizing Material components through CSS variables and mixins instead of targeting internal elements.- ViewEncapsulation: Verify the component uses
ViewEncapsulation.Emulated(default) orShadowDomto ensure styles don't leak.- CSS custom properties: Define theme-aware custom properties at the component level for reusable styling.
Also applies to: 175-218
100-143: Reduce tight coupling to Material form field internals.Targeting internal Material form field elements (
.mat-form-field-wrapper,.mat-form-field-infix,.mat-form-field-outline-*) via::ng-deepcreates fragile styling that breaks when Material updates its DOM structure.Instead, consider:
- Using Material's
appearanceinput and theming APIs- Wrapping form fields in custom containers with your own styling
- Leveraging CSS custom properties for typography and spacing overrides
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
src/app/savings/create-savings-account/create-savings-account.component.scss(1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
src/app/**
⚙️ CodeRabbit configuration file
src/app/**: For Angular code: verify component separation, trackBy on *ngFor,
strict type safety, and clean observable patterns.
Files:
src/app/savings/create-savings-account/create-savings-account.component.scss
🔇 Additional comments (4)
src/app/savings/create-savings-account/create-savings-account.component.scss (4)
1-18: Container responsive styling looks good.The margin and padding adjustments for 768px and 480px breakpoints follow a clean responsive pattern. Box-sizing and max-width constraints are well-implemented.
20-23: Smooth animation and fade-in keyframes are well-structured.The fade-in animation with a 0.3s ease-in timing and subtle translateY offset provides a polished transition for step content. The keyframes definition is clean and performant.
Also applies to: 161-171
38-63: Stepper header, icon, label, and button styling follow Material design principles.Typography, spacing, and interactive element sizing are appropriately configured for accessibility (min-height: 48px/36px, readable font sizes, clear line-height).
Also applies to: 146-158
9-17: No changes needed — the modern media query syntax is fully compatible with this project's browser support targets.The modern CSS media query syntax (
width <= 768px) is supported in Chrome 104+, Edge 104+, Firefox 102+, Safari 16.4+, and iOS Safari 16.4+. The project's.browserslistrcconfiguration targets "last 2 versions" and "> 0.5%", which aligns with modern browsers. IE 9-11 support is explicitly disabled in the configuration, so the syntax compatibility concern does not apply to this project's actual browser support matrix.Likely an incorrect or invalid review comment.
alberto-art3ch
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please let try to use the global styles instead of this
Description
This pr enhanced form responsiveness, stepper styling, and overall visual polish for better UX.
#{Issue Number}
WEB-406
Screenshots, if any
before:


after:
Checklist
Please make sure these boxes are checked before submitting your pull request - thanks!
If you have multiple commits please combine them into one commit by squashing them.
Read and understood the contribution guidelines at
web-app/.github/CONTRIBUTING.md.Summary by CodeRabbit