Opened 10 years ago

Closed 10 years ago

#8626 closed defect (fixed)

Font on tick marks is no longer changeable via CSS

Reported by: benschell Owned by: Jared Jurkiewicz
Priority: high Milestone: 1.3
Component: DojoX Widgets Version: 1.3.0b1
Keywords: Cc:
Blocked By: Blocking:

Description

Previously, one could do something along the lines of:

.dojoxGaugeContent {
  font-family: 'Arial';
  font-size: '20px';
}

However, this no longer works. At some point, the <text> svg elements that dojox.gfx generates started having all attributes defined (including font-size, font-family, etc.), which overrides any 'inherited' CSS styles.

The majorTicks should have some way for the font attributes to be set. Ideally, this should be able to be done with CSS, but at a minimum there should be some sort of font attribute on the majorTicks object.

Attachments (1)

gauge_font.patch (3.1 KB) - added by benschell 10 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 10 years ago by benschell

Status: newassigned

I'm attaching a patch that allows font attributes to be set on the majorTicks object. Currently, I'm not spotting a way to inherit this from the CSS (since dojo.style does not work on SVG elements), but I'm going to keep looking.

Changed 10 years ago by benschell

Attachment: gauge_font.patch added

comment:2 Changed 10 years ago by Jared Jurkiewicz

Owner: changed from benschell to Jared Jurkiewicz
Status: assignednew

comment:3 Changed 10 years ago by Jared Jurkiewicz

Milestone: tbd1.3
Version: 1.2.31.3.0b1

comment:4 Changed 10 years ago by Jared Jurkiewicz

Resolution: fixed
Status: newclosed

(In [16673]) Commiting in fix for font controls of the gauge + a bug in tick label offset. fixes #8626

Note: See TracTickets for help on using tickets.