Skip to content

Commit

Permalink
Merge pull request #138 from zalabhavy/input
Browse files Browse the repository at this point in the history
Input field style added
  • Loading branch information
Avdhesh-Varshney authored Jun 21, 2024
2 parents f8f613a + 8077f8f commit b797bb7
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 5 deletions.
19 changes: 19 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,22 @@ input[type=number]::-webkit-outer-spin-button {
transform: scale(1.05);
box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}
.autocomplete-container .MuiOutlinedInput-root {
border-radius: 8px;
border-color: white;
color: white;
transition: border-color 0.3s ease, color 0.3s ease;
}
.autocomplete-container .MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline {
border-color: white;
}
.autocomplete-container .MuiInputLabel-root {
color: white;
transition: color 0.3s ease;
}
.autocomplete-container .MuiInputLabel-root.Mui-focused {
color: white;
}
.autocomplete-container .MuiOutlinedInput-input {
color: white;
}
16 changes: 11 additions & 5 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,20 @@ function App() {
<label htmlFor="inputNumber" className="col-form-label">Episode Number</label>
</div>

<div className="col-auto">
<Autocomplete
<div className="col-auto autocomplete-container">
<Autocomplete
disablePortal
className="bg-white"
options={options}
sx={{ width: 300 }}
renderInput={(params) => <TextField onSelect={handleOnChange} onChange={handleOnChange} {...params} label="Input Ep.1 to 806 (Finale)" />}
/>
renderInput={(params) => (
<TextField
onSelect={handleOnChange}
onChange={handleOnChange}
{...params}
label="Input Ep.1 to 806 (Finale)"
/>
)}
/>
</div>

<div className="col-auto">
Expand Down

0 comments on commit b797bb7

Please sign in to comment.