-
-
Notifications
You must be signed in to change notification settings - Fork 862
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
Figma: Refactor CSS files in src/components/AgendaCategory #3316 #3462
Figma: Refactor CSS files in src/components/AgendaCategory #3316 #3462
Conversation
WalkthroughThis pull request focuses on refactoring the CSS for the AgendaCategory component by removing the component-specific CSS module and migrating its styles to the global Changes
Possibly related issues
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (2)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Our Pull Request Approval ProcessThanks for contributing! Testing Your CodeRemember, your PRs won't be reviewed until these criteria are met:
Our policies make our code better. ReviewersDo not assign reviewers. Our Queue Monitors will review your PR and assign them.
Reviewing Your CodeYour reviewer(s) will have the following roles:
CONTRIBUTING.mdRead our CONTRIBUTING.md file. Most importantly:
Other
|
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/style/app.module.css (2)
9104-9107
: Remove unnecessary empty lines and comments.Clean up the formatting by removing empty lines 9104-9106 and the unnecessary comment on line 9107.
- - - -/* AgendaCategory.tsx */🧰 Tools
🪛 GitHub Actions: PR Workflow
[warning] Code style issues found. Run Prettier with --write to fix formatting issues.
9108-9127
: Add responsive styles and dark mode support.The new AgendaCategory styles need improvements:
- Add responsive styles for mobile viewports
- Add dark mode support using CSS variables
.createModalAgendaCategory { margin-top: 20vh; margin-left: 13vw; max-width: 80vw; + @media (max-width: 768px) { + margin: 10vh auto; + max-width: 90vw; + } + @media (max-width: 480px) { + margin: 5vh auto; + max-width: 95vw; + } } .titlemodalAgendaCategory { - color: var(--bs-gray-600); + color: var(--text-primary, var(--bs-gray-600)); font-weight: 600; font-size: 20px; margin-bottom: 20px; padding-bottom: 5px; - border-bottom: 3px solid var(--bs-primary); + border-bottom: 3px solid var(--border-accent, var(--bs-primary)); width: 65%; + @media (max-width: 768px) { + width: 90%; + font-size: 18px; + } + @media (max-width: 480px) { + width: 100%; + font-size: 16px; + } } .agendaCategoryOptionsButton { width: 24px; height: 24px; + @media (max-width: 480px) { + width: 20px; + height: 20px; + } }🧰 Tools
🪛 GitHub Actions: PR Workflow
[warning] Code style issues found. Run Prettier with --write to fix formatting issues.
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
src/components/AgendaCategory/AgendaCategoryContainer.module.css
(0 hunks)src/components/AgendaCategory/AgendaCategoryContainer.tsx
(1 hunks)src/style/app.module.css
(1 hunks)
💤 Files with no reviewable changes (1)
- src/components/AgendaCategory/AgendaCategoryContainer.module.css
✅ Files skipped from review due to trivial changes (1)
- src/components/AgendaCategory/AgendaCategoryContainer.tsx
🧰 Additional context used
🪛 GitHub Actions: PR Workflow
src/style/app.module.css
[warning] Code style issues found. Run Prettier with --write to fix formatting issues.
🔇 Additional comments (1)
src/style/app.module.css (1)
Line range hint
1-9127
: Fix formatting issues flagged by pipeline.Run Prettier to fix the formatting issues identified by the pipeline.
🧰 Tools
🪛 GitHub Actions: PR Workflow
[warning] Code style issues found. Run Prettier with --write to fix formatting issues.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop-postgres #3462 +/- ##
=====================================================
+ Coverage 2.26% 89.22% +86.95%
=====================================================
Files 316 338 +22
Lines 8249 8630 +381
Branches 1880 1926 +46
=====================================================
+ Hits 187 7700 +7513
+ Misses 8050 652 -7398
- Partials 12 278 +266
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
See comment
} | ||
|
||
.titlemodalAgendaCategory { | ||
color: var(--bs-gray-600); |
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.
Use variable names that describe the function of the color and not the color itself. This will help with adding a Dark Mode feature.
- For example
--search-button-bg
is much better than--light-blue
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.
Use variable names that describe the function of the color and not the color itself. This will help with adding a Dark Mode feature.
- For example
--search-button-bg
is much better than--light-blue
|
What kind of change does this PR introduce?
Refactoring
Issue Number:
#3316
Snapshots/Videos:
Summary
Aim is to consolidate style sheet in agenda category into app.module style sheet
Does this PR introduce a breaking change?
No
Checklist
CodeRabbit AI Review
Test Coverage
Have you read the contributing guide?
Yes
Summary by CodeRabbit