Skip to content

Commit

Permalink
style case title input area,
Browse files Browse the repository at this point in the history
relates #148
  • Loading branch information
sima-qian committed Oct 18, 2018
1 parent 3233bce commit f358a96
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
18 changes: 17 additions & 1 deletion src/components/Pages/AddNew/AddNewContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,22 @@ const StyledButton = styled.input`
}
`;

const StyledTextArea = styled.textarea`
resize: none;
margin: 16px;
padding: 8px;
width: calc(100vw - 48px);
height: calc(100vh - 322px);
border: none;
font-size: 16px;
line-height: 1.2;
font-family: "Roboto", Helvetica, sans-serif;
:focus {
outline-color: #c7c7b2;
}
`;

const MarkSchemeList = styled.ul`
width: 100%;
`;
Expand Down Expand Up @@ -116,7 +132,7 @@ export default class AddNewContainer extends React.Component {
{this.props.caseDetailsDisplayed ? (
<div id="add-new-text" data-testid="new-case-details">
<InstructionText text={"Case details"} />
<textarea
<StyledTextArea
onChange={this.props.caseDetailsChange}
placeholder="Add patient details"
max-length="5000"
Expand Down
5 changes: 1 addition & 4 deletions src/components/Pages/AddNew/NewTileTextInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,8 @@ const NewTileTextInputElement = styled.input`
width: 100%;
border: none;
border-bottom: solid black 2px;
color: #009f5c;
font-size: 20px;
font-family: "Nova Round", Helvetica, sans-serif;
text-transform: uppercase;
font-family: "Roboto", Helvetica, sans-serif;
line-height: 1.2;
letter-spacing: 1px;
Expand Down

0 comments on commit f358a96

Please sign in to comment.