Skip to content

Commit

Permalink
Fix input attributes and title
Browse files Browse the repository at this point in the history
  • Loading branch information
annaindistress committed Jan 16, 2024
1 parent 7a519ec commit ca4214c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export default function App() {
<main>
<h1 className="sr-only">Age Calculator challenge on Frontend Mentor</h1>
<section className="card">
<h2 className="sr-only">Calculator</h2>
<form className="form" noValidate onSubmit={handleSubmit}>
<div className="form-row">
<Input
Expand All @@ -86,7 +87,7 @@ export default function App() {
<Input
label="year"
placeholder="YYYY"
min=""
min={0}
max={new Date().getFullYear()}
value={year}
onChange={setYear}
Expand Down

0 comments on commit ca4214c

Please sign in to comment.