Opened 11 years ago

Closed 11 years ago

#6596 closed enhancement (fixed)

[patch/cla] Tooltip content inacessible by CSS

Reported by: dante Owned by: bill
Priority: high Milestone: 1.2
Component: Dijit Version: 1.1.0
Keywords: Cc:
Blocked By: Blocking:

Description

I encountered a use case of wanting to be able to display Tooltip content when a user prints a page. Typically the way to do this

@media print { /* do something } 

but the Tooltip data is set display:none by postCreate, and no additional CSS-based access to the node (other than by ID, but that's cumbersome) can be made. Attached patch removes JS styling of the srcNode, adding a class "dijitTooltipData" to the domNode. this makes something like:

@media print {
    .dijitTooltipData {
       display:block;
       border:2px solid red; 
    }
} 

work.

Attachments (1)

tooltip.patch (740 bytes) - added by dante 11 years ago.
my patch

Download all attachments as: .zip

Change History (2)

Changed 11 years ago by dante

Attachment: tooltip.patch added

my patch

comment:1 Changed 11 years ago by dante

Resolution: fixed
Status: newclosed

(In [13410]) fixes #6596 - add the ability to access Tooltip srcNode's via standard css. partially refs #6597, which will come in as several checkins pending full testing for each widget modified. iirc, this patch received explict, though hesitant, approval.

Note: See TracTickets for help on using tickets.