Opened 10 years ago

Closed 10 years ago

#9416 closed defect (fixed)

TitlePane should allow setting the title attribute on the title node

Reported by: Becky Gibson Owned by: bill
Priority: high Milestone: 1.4
Component: Dijit Version: 1.3.0
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by bill)

Currently the title attribute for a dojoType=dijit.TitlePane is used to specify the actual title text for the Title node of the component. There is no way to add an actual HTML title attribute to the title node. The title attribute could be used to provide the user more information about the state of the title Pane - open or closed, for example.

Change History (5)

comment:1 Changed 10 years ago by Becky Gibson

Could also consider using aria-label or a djit.Tooltip to provide a more accessible alternative.

comment:2 Changed 10 years ago by bill

Description: modified (diff)

Hmm, this seems like a larger issue than TitlePane. You could make the same argument about the panes in an AccordionContainer or the tabs of a TabContainer (see #7508). Plus there are other tickets about tooltips like #5817.

Since "title" is already a dijit standard to mean "name of this thing" (aka a thing's title), maybe there should be an attribute called "tooltip"?

Perhaps it was a mistake to use "title" in the English sense of the word (a thing's name) rather than the HTML meaning (ie, a tooltip), and we could rename "title" to "label" or "name", but it seems hard to do that in a backwards-compatible way. (And also the attribute named "title" makes sense for the widget named TitlePane)

comment:3 Changed 10 years ago by bill

Milestone: tbd1.4
Owner: set to bill
Status: newassigned

comment:4 Changed 10 years ago by bill

(In [20243]) Test for tooltip for TitlePane? title, refs #9416.

comment:5 Changed 10 years ago by bill

Resolution: fixed
Status: assignedclosed

(In [20242]) Provide tooltip for TitlePane title, via new "tooltip" attribute (fixes #9416 !strict). "tooltip" attribute can also be used for future tooltip for tab labels etc. (refs #7508).

Also fixed description of title attribute (refs #8676 etc)


Note: See TracTickets for help on using tickets.