Behaviour
If states are used in buttonTheme I get a warning in the console:
Highcharts warning: Invalid attribute 'states' in config
Live demo with steps to reproduce
https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/stock/rangeselector/styling/
or
https://api.highcharts.com/highcharts/chart.resetZoomButton.theme
Steps: zoom to show the button -> warning
Product version
v9.0.0+
Workaround
Ignore it - everything works fine anyway.
Internal notes
states end up in normalState (from the theme), but could be safely deleted before running AST.filterUserAttributes(normalState) because normalState is already a copy and states are provided to SVGRenderer.prototype.button as arguments and later used from them
Behaviour
If states are used in buttonTheme I get a warning in the console:
Highcharts warning: Invalid attribute 'states' in configLive demo with steps to reproduce
https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/stock/rangeselector/styling/
or
https://api.highcharts.com/highcharts/chart.resetZoomButton.theme
Steps: zoom to show the button -> warning
Product version
v9.0.0+
Workaround
Ignore it - everything works fine anyway.
Internal notes
statesend up innormalState(from the theme), but could be safely deleted before runningAST.filterUserAttributes(normalState)becausenormalStateis already a copy andstatesare provided toSVGRenderer.prototype.buttonas arguments and later used from them