Skip to content

Styles won't be applied to annotation label if useHTML is enabled #19200

Closed
@nlotz63

Description

@nlotz63

Expected behaviour

With useHTML enabled for annotations, you should be able to apply styles to the annotation text. E.g., change the font size.

Actual behaviour

When useHTML is enabled, style properties are ignored. If it helps, this issue didn't exist in version 11.0.0

Live demo with steps to reproduce

Demo

  1. View the demo and note the size of the font is set to 28px and useHTML is false.
  2. Change useHTML to true and run.
  3. Note the font is no longer rendered at 28px

Product version

Highcharts version 11.1.0 (the bug was not present in version 11.0.0)

Affected browser(s)

MS Edge, Chrome, and FireFox

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions