Skip to content

Commit

Permalink
fix colorbar templating for "non-root" colorscales
Browse files Browse the repository at this point in the history
- propagate template info into colorscale container
- fix marker_colorscale_template baseline which was botched from
  6a47d66
  • Loading branch information
etpinard committed Jan 7, 2020
1 parent 9fc2c82 commit 6942b10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/colorscale/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ module.exports = function colorScaleDefaults(parentContIn, parentContOut, layout
if(prefix && inTrace) showScaleDflt = hasColorbar(containerIn);

var showScale = coerce(prefix + 'showscale', showScaleDflt);
if(showScale) colorbarDefaults(containerIn, containerOut, layout);
if(showScale) {
if(prefix && template) containerOut._template = template;
colorbarDefaults(containerIn, containerOut, layout);
}
}
};
Binary file modified test/image/baselines/marker_colorscale_template.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6942b10

Please sign in to comment.