Skip to content

Commit

Permalink
PR comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
vengroff committed Jan 3, 2025
1 parent 6ee4d8b commit 7c55828
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 14 deletions.
54 changes: 41 additions & 13 deletions react/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,19 +99,47 @@ function AddressForm() {
}
/>
</label>
<label>
<p className="label">
Current Heating Fuel:
</p>
<input type="radio" name="fuel" value="fuel_oil" onChange={onFuelChange} />
Fuel Oil
<input type="radio" name="fuel" value="natural_gas" onChange={onFuelChange} defaultChecked={true} />
Natural Gas
<input type="radio" name="fuel" value="propane" onChange={onFuelChange} />
Propane
<input type="radio" name="fuel" value="electricity" onChange={onFuelChange} />
Electricity
</label>
<br/><br/>
<fieldset id="fuels">
<legend className="label">Current Heating Fuel:</legend>
<label>
<input
type="radio"
name="fuel"
value="fuel_oil"
onChange={onFuelChange}
/>
Fuel Oil
</label>
<label>
<input
type="radio"
name="fuel"
value="natural_gas"
onChange={onFuelChange}
defaultChecked={true}
/>
Natural Gas
</label>
<label>
<input
type="radio"
name="fuel"
value="propane"
onChange={onFuelChange}
/>
Propane
</label>
<label>
<input
type="radio"
name="fuel"
value="electricity"
onChange={onFuelChange}
/>
Electricity
</label>
</fieldset>
<br/><br/>
<label>
<input type="submit" value="OK"/>
Expand Down
8 changes: 7 additions & 1 deletion react/src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,16 @@ html, body {
#address {
margin-left: auto;
margin-right: auto;
width: 400px;
width: 460px;
border-width: 3;
font-size: 12pt;
}

#fuels {
width: 440px;
padding: 10px;
}

#ok {
width: 80px;
}
Expand Down

0 comments on commit 7c55828

Please sign in to comment.