Open pbatleyGH opened 5 years ago
Styling the box using infoStyles = {..., box: ...} does not do anything on a TimeMarker component.
infoStyles = {..., box: ...}
TimeMarker
I believe that this is because:
line 73 of TimeMarker.js unpacks the box property style: this.props.infoStyle.box,
style: this.props.infoStyle.box,
then renders a label component which attempts to again unpack the box property style.box
function mergeStyles(style, isCentered) { return { boxStyle: merge(true, defaultBoxStyle, style.box ? style.box : {}), labelStyle: merge( true, isCentered ? defaultTextStyleCentered : defaultTextStyle, style.label ? style.label : {} ) }; }
(to anyone needing a workaround, use: infoStyles = {..., box: { box: {...} }})
infoStyles = {..., box: { box: {...} }}
i believe this was fixed in #403
🐛Bug report
Styling the box using
infoStyles = {..., box: ...}
does not do anything on aTimeMarker
component.I believe that this is because:
line 73 of TimeMarker.js unpacks the box property
style: this.props.infoStyle.box,
then renders a label component which attempts to again unpack the box property style.box
(to anyone needing a workaround, use:
infoStyles = {..., box: { box: {...} }}
)