Skip to content

Commit abf0dd4

Browse files
authored
Merge pull request #1170 from complexdatacollective/fix/other-dialog-markdown
Fix/other dialog markdown
2 parents 5288aec + a61e992 commit abf0dd4

4 files changed

Lines changed: 10 additions & 2 deletions

File tree

src/containers/CategoricalList/OtherVariableForm.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React from 'react';
22
import PropTypes from 'prop-types';
33
import { reduxForm } from 'redux-form';
44
import { Button, Node } from '@codaco/ui';
5+
import { MarkdownLabel } from '@codaco/ui/lib/components/Fields';
56
import Field from '../Field';
67

78
const stopClickPropagation = (e) => e.stopPropagation();
@@ -20,7 +21,9 @@ const OtherVariableForm = ({
2021
<Node label={label} color={color} />
2122
</div>
2223
<div className="other-variable-form__content-right">
23-
<h4>{otherVariablePrompt}</h4>
24+
<h4>
25+
<MarkdownLabel inline label={otherVariablePrompt} />
26+
</h4>
2427
<Field
2528
label=""
2629
placeholder="Enter your response here..."

src/containers/Server/PairingCodeDialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ const PairingCodeDialog = (props) => {
117117
}, [server]);
118118

119119
return (
120-
<motion.div>
120+
<motion.div className="pairing-content">
121121
{
122122
loading
123123
? (

src/styles/components/_other-variable-form.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.other-variable-form {
22
height: auto;
33
padding: 2rem 0;
4+
flex: 1 1;
45

56
&__content {
67
display: flex;

src/styles/containers/StartScreen/_pairing-form.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
.pairing-content {
2+
flex: 1 1;
3+
}
4+
15
.pairing-form {
26
margin-bottom: unit(4);
37

0 commit comments

Comments
 (0)