laptop and a wrench

Bug

Styles applied to the text element of a TextSymbol do not properly honor a range of styles such as the color, background color, and text shadow.

Last Published: November 20, 2015 ArcGIS API for JavaScript
Bug ID Number BUG-000092242
SubmittedNovember 17, 2015
Last ModifiedJune 5, 2024
Applies toArcGIS API for JavaScript
Version found3.14
Operating SystemWindows OS
Operating System Version7.0 64 Bit
StatusKnown Limit

Additional Information

This is due to the internal styling of TextElement. Users can view this in Chrome's developer tools. This styling overrides what is set within the CSS and is by design. As a workaround, work with SVG and CSS to get the desired results. Graphics are rendered using SVG, so use text attributes such as fill, fill opacity, stroke, and so forth. More information on working with SVG can be found at https://developers.arcgis.com/javascript/jshelp/inside_styling_svg.html

Steps to Reproduce

Bug ID: BUG-000092242

Software:

  • ArcGIS API for JavaScript

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options