-
Notifications
You must be signed in to change notification settings - Fork 0
refactor(frontend): explicit-text-color #84
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
Conversation
✅ Deploy Preview for kleros-website-v2 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
WalkthroughThis pull request standardizes text styling across the project by adding the Changes
Possibly related PRs
Suggested reviewers
Poem
✨ Finishing Touches
🪧 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
CodeRabbit Configuration File (
|
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 (1)
frontend/src/components/Button.tsx (1)
12-12
: Consider making text colors explicit for all button variants.While adding
text-primary-text
to the secondary variant is good, consider making text colors explicit for primary and tertiary variants as well, for consistency with the PR's objective.const primaryStyle = clsx( "bg-primary-blue", + "text-background-2", "hover:bg-primary-blue/90", "disabled:bg-stroke", ); const tertiaryStyle = clsx( "bg-transparent border-2 border-white", + "text-primary-text", "hover:bg-white/10", );
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (32)
frontend/src/app/for-lawyers/components/Hero.tsx
(1 hunks)frontend/src/app/home/components/CaseStudies.tsx
(1 hunks)frontend/src/app/home/components/GetInTouch.tsx
(1 hunks)frontend/src/app/home/components/Hero.tsx
(1 hunks)frontend/src/app/home/components/HowKlerosWorks.tsx
(1 hunks)frontend/src/app/home/components/LearnPosts.tsx
(1 hunks)frontend/src/app/home/components/StartEarning.tsx
(1 hunks)frontend/src/app/home/components/TokenStats.tsx
(1 hunks)frontend/src/app/home/components/UseCases.tsx
(1 hunks)frontend/src/components/BrandAssets/Hero.tsx
(1 hunks)frontend/src/components/BrandAssets/KlerosBadgesSection.tsx
(1 hunks)frontend/src/components/BrandAssets/KlerosColorsSection/index.tsx
(1 hunks)frontend/src/components/BrandAssets/KlerosFontsSection.tsx
(1 hunks)frontend/src/components/BrandAssets/KlerosLogoSection.tsx
(1 hunks)frontend/src/components/BrandAssets/LogosPackageSection.tsx
(1 hunks)frontend/src/components/BrandAssets/PnkTokenSection.tsx
(1 hunks)frontend/src/components/BrandAssets/StyledImagesSection.tsx
(2 hunks)frontend/src/components/Button.tsx
(1 hunks)frontend/src/components/Community/hero.tsx
(1 hunks)frontend/src/components/Cooperative/hero.tsx
(1 hunks)frontend/src/components/Earn/Hero.tsx
(1 hunks)frontend/src/components/Earn/TabSection/JurorTabContent/CourtsSection.tsx
(1 hunks)frontend/src/components/Footer.tsx
(2 hunks)frontend/src/components/ForBuilders/Hero.tsx
(2 hunks)frontend/src/components/ForBuilders/UseCasesSection/DAOSection/KeyChallenges/SafeSnap.tsx
(1 hunks)frontend/src/components/ForBuilders/UseCasesSection/index.tsx
(1 hunks)frontend/src/components/ImageDownload.tsx
(1 hunks)frontend/src/components/PNKToken/Hero.tsx
(1 hunks)frontend/src/components/ResearchDevelopment/Hero.tsx
(1 hunks)frontend/src/components/ResearchDevelopment/TabSection/FellowshipTabContent/WaitlistSection.tsx
(1 hunks)frontend/src/components/ResearchDevelopment/TabSection/ResearchTabContent/KlerosBook.tsx
(1 hunks)frontend/src/utils/getHeroImgsProps.ts
(1 hunks)
✅ Files skipped from review due to trivial changes (21)
- frontend/src/components/ForBuilders/UseCasesSection/index.tsx
- frontend/src/components/BrandAssets/KlerosLogoSection.tsx
- frontend/src/components/BrandAssets/PnkTokenSection.tsx
- frontend/src/components/BrandAssets/Hero.tsx
- frontend/src/components/ForBuilders/UseCasesSection/DAOSection/KeyChallenges/SafeSnap.tsx
- frontend/src/app/home/components/TokenStats.tsx
- frontend/src/app/home/components/GetInTouch.tsx
- frontend/src/components/BrandAssets/KlerosFontsSection.tsx
- frontend/src/components/Earn/Hero.tsx
- frontend/src/components/Cooperative/hero.tsx
- frontend/src/components/BrandAssets/KlerosBadgesSection.tsx
- frontend/src/components/Earn/TabSection/JurorTabContent/CourtsSection.tsx
- frontend/src/components/ImageDownload.tsx
- frontend/src/components/ResearchDevelopment/TabSection/ResearchTabContent/KlerosBook.tsx
- frontend/src/app/home/components/UseCases.tsx
- frontend/src/components/ResearchDevelopment/TabSection/FellowshipTabContent/WaitlistSection.tsx
- frontend/src/components/BrandAssets/StyledImagesSection.tsx
- frontend/src/components/Community/hero.tsx
- frontend/src/components/PNKToken/Hero.tsx
- frontend/src/app/home/components/StartEarning.tsx
- frontend/src/components/BrandAssets/KlerosColorsSection/index.tsx
🔇 Additional comments (19)
frontend/src/utils/getHeroImgsProps.ts (1)
15-15
: LGTM! Good performance optimization.Setting
fetchPriority: "low"
for hero images is a good practice as it helps the browser prioritize more critical resources during page load.frontend/src/app/home/components/CaseStudies.tsx (1)
19-22
: LGTM! Consistent text color styling.The addition of
text-primary-text
class aligns with the PR objective of making text colors explicit while maintaining the existing responsive design.frontend/src/components/BrandAssets/LogosPackageSection.tsx (1)
16-16
: LGTM! Consistent text color styling.The addition of
text-primary-text
class to the header aligns with the PR objective and maintains consistency with the explicit text color styling already present in the subtitle.frontend/src/app/home/components/HowKlerosWorks.tsx (2)
24-27
: LGTM! Text color standardization for the title.The addition of
text-primary-text
class aligns with the PR's objective of standardizing text colors.
27-27
: LGTM! Text color standardization for the subtitle.The addition of
text-primary-text
class maintains consistency with the title styling.frontend/src/app/for-lawyers/components/Hero.tsx (2)
20-22
: LGTM! Text color standardization for the header.The addition of
text-primary-text
class aligns with the PR's objective.
23-23
: LGTM! Text color standardization for the subtitle.The addition of
text-primary-text
class maintains consistency with the header styling.frontend/src/components/ResearchDevelopment/Hero.tsx (2)
21-23
: LGTM! Text color standardization for the header.The addition of
text-primary-text
class maintains consistency with other Hero components.
24-24
: LGTM! Text color standardization for the subtitle.The addition of
text-primary-text
class aligns with the header styling.frontend/src/app/home/components/LearnPosts.tsx (2)
21-23
: LGTM! Text color standardization for the title.The addition of
text-primary-text
class aligns with the PR's objective.
24-24
: LGTM! Text color standardization for the subtitle.The addition of
text-primary-text
class maintains consistency with the title styling.frontend/src/components/ForBuilders/Hero.tsx (3)
19-21
: LGTM! Explicit text color styling added.The addition of
text-primary-text
class aligns with the PR objective of making text colors explicit.
22-24
: LGTM! Explicit text color styling added.The addition of
text-primary-text
class aligns with the PR objective of making text colors explicit.
35-35
: LGTM! Explicit text color styling added.The addition of
text-primary-text
class aligns with the PR objective of making text colors explicit.frontend/src/app/home/components/Hero.tsx (2)
29-31
: LGTM! Explicit text color styling added.The addition of
text-primary-text
class aligns with the PR objective of making text colors explicit.
32-32
: LGTM! Explicit text color styling added.The addition of
text-primary-text
class aligns with the PR objective of making text colors explicit.frontend/src/components/Footer.tsx (3)
36-36
: LGTM! Explicit text color styling added.The addition of
text-primary-text
class aligns with the PR objective of making text colors explicit.
68-71
: LGTM! Explicit text color styling added.The addition of
text-primary-text
class aligns with the PR objective of making text colors explicit.
78-78
: LGTM! Explicit text color styling added.The addition of
text-primary-text
class aligns with the PR objective of making text colors explicit.
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.
lgtm
Summary by CodeRabbit
Style
Chores