Skip to content

Commit

Permalink
Fix small bug applying styles to input elements
Browse files Browse the repository at this point in the history
  • Loading branch information
iangray001 committed Jul 17, 2022
1 parent e3debb9 commit 86c469f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions data/js/controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -815,13 +815,13 @@ var elementHTML = function(data) {
elementStyle + " class='range-slider__range'><span class='range-slider__value'>" +
data.value + "</span></div>";
case UI_NUMBER:
return "<input style='color:black;' " + elementStyle + " id='num" + id +
return "<input style='color:black; " + data.elementStyle + "' id='num" + id +
"' type='number' value='" + data.value + "' onchange='numberchange(" + id + ")' />";
case UI_TEXT_INPUT:
return "<input " + inputType + "style='color:black;' " + elementStyle + " id='text" + id +
return "<input " + inputType + "style='color:black; " + data.elementStyle + "' id='text" + id +
"' value='" + data.value + "' onchange='textchange(" + id + ")' />";
case UI_SELECT:
return "<select style='color:black;' " + elementStyle + " id='select" + id +
return "<select style='color:black; " + data.elementStyle + "' id='select" + id +
"' onchange='selectchange(" + id + ")' />";
case UI_GRAPH:
return "<figure id='graph" + id + "'><figcaption>" + data.label + "</figcaption></figure>";
Expand Down
6 changes: 3 additions & 3 deletions data/js/controls.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 86c469f

Please sign in to comment.