Skip to content

fix: match inputs with figma styles#261

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

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

Conversation

@priscila-moneo
Copy link
Copy Markdown
Contributor

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

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

image

Summary by CodeRabbit

  • Style Updates
    • Refined search input field styling with consistent border colors across default, hover, and unfocused states.
    • Enhanced form control theme customization for improved visual consistency of input fields and dropdown selectors.

Signed-off-by: Priscila Moneo <priscila_moneo@hotmail.com.ar>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jun 2, 2026

Review Change Stack

📝 Walkthrough

Walkthrough

This PR introduces a centralized MUI theme configuration module and applies border styling updates to the SearchInput component. The theme file defines customizations for outlined inputs and select dropdowns, a new SearchInput styling rule applies border colors via sx, and Webpack bundling is configured to export the theme module.

Changes

MUI Theme Customization and Styling

Layer / File(s) Summary
MUI Theme Foundation
src/utils/theme.js
New theme module exports CustomThemeBase with MuiOutlinedInput border color set to black across default, hover, and focused states, and MuiSelect configured to use KeyboardArrowDownIcon with 24px sizing.
SearchInput Border Styling
src/components/mui/search-input.js
SearchInput's outlined TextField adds sx rules for notched outline border color applied to default, hover, and focused states.
Webpack Build Entry
webpack.common.js
New Webpack entry point named utils/theme added to bundle the new theme module into UMD output.

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested Reviewers

  • smarcet
  • santipalenque

Poem

🐰 A theme takes shape, with borders black and true,
SearchInput follows suit with styling new,
Webpack wraps it all in bundles tight—
MUI customization, now just right! ✨

🚥 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 relates to the primary change: updating MUI TextField and theme styling to match Figma design specifications.
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 docstrings
  • Create stacked PR
  • Commit on current branch
🧪 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.

Copy link
Copy Markdown
Contributor

@santipalenque santipalenque left a comment

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, }, }, }, });

Signed-off-by: Priscila Moneo <priscila_moneo@hotmail.com.ar>
Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

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 on lines +87 to +89
"& .MuiOutlinedInput-root .MuiOutlinedInput-notchedOutline": { borderColor: "rgba(0, 0, 0, 0.23)" },
"& .MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline": { borderColor: "rgba(0, 0, 0, 0.23)" },
"& .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline": { borderColor: "primary.main" }
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Border-state overrides conflict with the centralized theme contract.

At Line 87-89, SearchInput hardcodes notched-outline colors (rgba(...) and primary.main), but src/utils/theme.js already centralizes MuiOutlinedInput border colors for default/hover/focus (#000). This creates cross-component inconsistency and defeats the new theme abstraction.

Suggested fix
       sx={{
         "& .MuiOutlinedInput-root": {
           height: "36px",
           paddingX: 1
-        },
-        "& .MuiOutlinedInput-root .MuiOutlinedInput-notchedOutline": { borderColor: "rgba(0, 0, 0, 0.23)" },
-        "& .MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline": { borderColor: "rgba(0, 0, 0, 0.23)" },
-        "& .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline": { borderColor: "primary.main" }
+        }
       }}
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"& .MuiOutlinedInput-root .MuiOutlinedInput-notchedOutline": { borderColor: "rgba(0, 0, 0, 0.23)" },
"& .MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline": { borderColor: "rgba(0, 0, 0, 0.23)" },
"& .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline": { borderColor: "primary.main" }
sx={{
"& .MuiOutlinedInput-root": {
height: "36px",
paddingX: 1
}
}}
🤖 Prompt for 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.

In `@src/components/mui/search-input.js` around lines 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.

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.

2 participants