Skip to content

Commit

Permalink
Merge pull request #1170 from complexdatacollective/fix/other-dialog-…
Browse files Browse the repository at this point in the history
…markdown

Fix/other dialog markdown
  • Loading branch information
jthrilly authored Feb 21, 2022
2 parents 5288aec + a61e992 commit abf0dd4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/containers/CategoricalList/OtherVariableForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import { reduxForm } from 'redux-form';
import { Button, Node } from '@codaco/ui';
import { MarkdownLabel } from '@codaco/ui/lib/components/Fields';
import Field from '../Field';

const stopClickPropagation = (e) => e.stopPropagation();
Expand All @@ -20,7 +21,9 @@ const OtherVariableForm = ({
<Node label={label} color={color} />
</div>
<div className="other-variable-form__content-right">
<h4>{otherVariablePrompt}</h4>
<h4>
<MarkdownLabel inline label={otherVariablePrompt} />
</h4>
<Field
label=""
placeholder="Enter your response here..."
Expand Down
2 changes: 1 addition & 1 deletion src/containers/Server/PairingCodeDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const PairingCodeDialog = (props) => {
}, [server]);

return (
<motion.div>
<motion.div className="pairing-content">
{
loading
? (
Expand Down
1 change: 1 addition & 0 deletions src/styles/components/_other-variable-form.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.other-variable-form {
height: auto;
padding: 2rem 0;
flex: 1 1;

&__content {
display: flex;
Expand Down
4 changes: 4 additions & 0 deletions src/styles/containers/StartScreen/_pairing-form.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.pairing-content {
flex: 1 1;
}

.pairing-form {
margin-bottom: unit(4);

Expand Down

0 comments on commit abf0dd4

Please sign in to comment.