Skip to content

Commit

Permalink
Fix wrapping in O2 label and field
Browse files Browse the repository at this point in the history
Make "optional" align right in the Header elemens by removing an extra div.
  • Loading branch information
fwextensions committed Aug 24, 2022
1 parent cb535da commit b65fe62
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Components/Heading.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ import './Heading.scss';
function Heading({ title, subtitle, badge, children }) {
return (
<h3 className="usa-accordion__heading heading">
<div>
{title}
{subtitle && <div className="heading__subtitle">{subtitle}</div>}
</div>
{title}
{subtitle && <div className="heading__subtitle">{subtitle}</div>}
{badge && <div className="heading__badge">{badge}</div>}
{children}
</h3>
Expand Down
3 changes: 3 additions & 0 deletions src/EMS/PatientFields.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ function PatientFields({ ringdown, onChange }) {
<FormField
metadata={Patient.supplementalOxygenAmount}
disabled={ringdown.lowOxygenResponseType !== 'SUPPLEMENTAL OXYGEN'}
// we don't want to wrap this input as inputs with min/max values resize differently in Chrome, which then causes
// the unit label to wrap to the next line, due to the `flex-wrap: wrap` in .grid-row
isWrapped={false}
/>
</div>
}
Expand Down

0 comments on commit b65fe62

Please sign in to comment.