Skip to content

Commit f3fda5c

Browse files
authored
Merge pull request #2572 from pie-framework/feat/PD-5002
feat(inline-dropdown): change incorrect color and fix some warnings P…
2 parents 86ecdd0 + 2666cf7 commit f3fda5c

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

packages/inline-dropdown/src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export default class RootInlineDropdown extends HTMLElement {
3737
_render = () => {
3838
if (this._model && this._session) {
3939
let elem = React.createElement(InlineDropdown, {
40+
model:this._model,
4041
prompt: this._model.prompt,
4142
rationale: this._model.rationale,
4243
teacherInstructions: this._model.teacherInstructions,

packages/inline-dropdown/src/inline-dropdown.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export class InlineDropdown extends React.Component {
2424
value: PropTypes.object,
2525
feedback: PropTypes.object,
2626
onChange: PropTypes.func,
27+
language: PropTypes.string,
2728
};
2829

2930
static defaultProps = {
@@ -149,7 +150,7 @@ const styles = (theme) => ({
149150
color: color.correct(),
150151
},
151152
'&.incorrect': {
152-
color: color.incorrect(),
153+
color: color.incorrectWithIcon(),
153154
},
154155
},
155156
srOnly: {

0 commit comments

Comments
 (0)