Opened 12 years ago
Closed 12 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)
Change History (5)
comment:1 Changed 12 years ago by
Status: | new → assigned |
---|
Changed 12 years ago by
Attachment: | gauge_font.patch added |
---|
comment:2 Changed 12 years ago by
Owner: | changed from benschell to Jared Jurkiewicz |
---|---|
Status: | assigned → new |
comment:3 Changed 12 years ago by
Milestone: | tbd → 1.3 |
---|---|
Version: | 1.2.3 → 1.3.0b1 |
comment:4 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
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.