Skip to content

fix: match inputs with figma styles#261

Open
priscila-moneo wants to merge 3 commits into
mainfrom
fix/match-inputs-figma-style
Open

fix: match inputs with figma styles#261
priscila-moneo wants to merge 3 commits into
mainfrom
fix/match-inputs-figma-style

Conversation

@priscila-moneo

@priscila-moneo priscila-moneo commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

ref: https://app.clickup.com/t/9014802374/86b8tt4df

image

Summary by CodeRabbit

  • New Features

    • Introduced enhanced Material-UI theme customization with improved border and icon styling across components.
  • Style

    • Updated search input border colors for better visual consistency.
    • Refined select dropdown icon appearance and dimensions.

@coderabbitai

coderabbitai Bot commented Jun 2, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@priscila-moneo, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 35 minutes and 34 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 7f21af7b-0770-4e5c-b446-d85fe4df6311

📥 Commits

Reviewing files that changed from the base of the PR and between 0045c0c and c85ca8a.

📒 Files selected for processing (3)
  • src/components/index.js
  • src/components/mui/MuiBaseCustomTheme.js
  • webpack.common.js
📝 Walkthrough

Walkthrough

Adds a new MuiBaseCustomTheme object overriding MuiOutlinedInput border CSS variables and MuiSelect icon defaults, re-exports it from the components barrel, updates SearchInput's TextField sx to an sx function setting the same border CSS variables, and registers a new utils/theme Webpack UMD entry.

Changes

MUI Theme Customization and Styling

Layer / File(s) Summary
MuiBaseCustomTheme definition and barrel export
src/components/mui/MuiBaseCustomTheme.js, src/components/index.js
New file exports MuiBaseCustomTheme with MUI component overrides for MuiOutlinedInput (border CSS variables for default, hover, and focused states) and MuiSelect (default KeyboardArrowDown icon with 24px sizing). The barrel re-exports this new named export.
SearchInput sx border rules
src/components/mui/search-input.js
Replaces the static sx object on TextField with an sx function that sets outlined-input border CSS variables: fixed gray for default/hover states and theme.palette.primary.main for focused state, while preserving fixed height and horizontal padding.
Webpack entry for theme module
webpack.common.js
Adds utils/theme as a named UMD entry point bundling ./src/utils/theme.js.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested reviewers

  • smarcet
  • santipalenque

Poem

🐇 A theme was born in the MUI land,
With borders of gray, precisely planned.
The select arrow points straight down with grace,
Each outlined input styled right in its place.
Webpack bundles it all, neat and grand! 🎨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'fix: match inputs with figma styles' directly aligns with the PR's primary objective of updating input components to match Figma design specifications, as evidenced by changes to SearchInput styling, MuiBaseCustomTheme customizations, and related exports.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/match-inputs-figma-style

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@santipalenque santipalenque left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move all these changes to CustomTheme

label={label}
labelId={`${name}-label`}
multiple
IconComponent={KeyboardArrowDownIcon}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was this a request ? I cannot see this anywhere on the ticket or the figma

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it is.
Ticket Request:
image

Figma Screenshot:
image

name={name}
label={label}
labelId={`${name}-label`}
IconComponent={KeyboardArrowDownIcon}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we are going to change all dropdown please use CustomTheme:

const theme = createTheme({ components: { MuiSelect: { defaultProps: { // Change the dropdown arrow icon globally IconComponent: KeyboardArrowDownIcon, }, }, }, });

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/components/mui/search-input.js`:
- Around line 87-89: SearchInput contains hardcoded MuiOutlinedInput
notchedOutline color overrides that conflict with the centralized theme; remove
the three style overrides using "& .MuiOutlinedInput-root
.MuiOutlinedInput-notchedOutline", "& .MuiOutlinedInput-root:hover
.MuiOutlinedInput-notchedOutline", and "& .MuiOutlinedInput-root.Mui-focused
.MuiOutlinedInput-notchedOutline" from the SearchInput styles and let the global
MuiOutlinedInput theme in theme.js control default/hover/focus borders, or if a
local variant is required read colors from the theme (e.g., theme.palette.*)
instead of hardcoded "rgba(...)" or "primary.main" so the component honors the
centralized contract.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: a229d797-2481-4618-af81-c087054e1532

📥 Commits

Reviewing files that changed from the base of the PR and between dede769 and e81f567.

📒 Files selected for processing (3)
  • src/components/mui/search-input.js
  • src/utils/theme.js
  • webpack.common.js

Comment thread src/components/mui/search-input.js Outdated
Comment thread src/utils/theme.js Outdated
}
};

export const CustomThemeBase = createTheme(uiCoreThemeOverrides);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need to createTheme in uicore, just export the definitions and let the client app use it as they need. Also please name it MuiBaseCustomTheme

Comment thread src/components/mui/search-input.js Outdated
paddingX: 1
},
},
"& .MuiOutlinedInput-root .MuiOutlinedInput-notchedOutline": { borderColor: "rgba(0, 0, 0, 0.23)" },

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@smarcet another example, we need to standarize these colors and use one in the color palette or use a custom one set on CustomTheme. If for some reason we don't want to do that because is too specific, then we should use one of the definitions gray[500] or something. In this particular case @priscila-moneo looks like this color is the default for border color on outline variant so I don't understand why are you overriding with that same color

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The override is intentional. The outlined variant default border color was changed to #000, but according to the current Figma designs, the Search input should keep using the previous border color instead of inheriting the new default. That's why the color is explicitly set here.
image
image

@JpMaxMan JpMaxMan Jun 5, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consistency is key in design systems. We should check with design team and see which one should be used and if it's differentiated by input type categorize that difference so it can be referenced the same way by all input types of that category.

Signed-off-by: Priscila Moneo <priscila_moneo@hotmail.com.ar>
@priscila-moneo priscila-moneo force-pushed the fix/match-inputs-figma-style branch from e81f567 to b4d388c Compare June 9, 2026 15:01

@santipalenque santipalenque left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good @priscila-moneo , I'll pre-approve but can you move the MuiBaseCustomTheme to /components/mui/MuiBaseCustomTheme.js ? I don't think this should go in utils. Also remember to update the export

Signed-off-by: Priscila Moneo <priscila_moneo@hotmail.com.ar>
@priscila-moneo priscila-moneo force-pushed the fix/match-inputs-figma-style branch from b4d388c to 0045c0c Compare June 17, 2026 13:29
Signed-off-by: Priscila Moneo <priscila_moneo@hotmail.com.ar>
@priscila-moneo priscila-moneo force-pushed the fix/match-inputs-figma-style branch from 0045c0c to c85ca8a Compare June 17, 2026 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants