#11112 closed enhancement (fixed)
Apply hint/help classes more widely
| Reported by: | Ryan J Ollos | Owned by: | Ryan J Ollos | 
|---|---|---|---|
| Priority: | low | Milestone: | 1.3.3 | 
| Component: | general | Version: | |
| Severity: | minor | Keywords: | help | 
| Cc: | Branch: | ||
| Release Notes: | 
           Changed styling and position of the You may use WikiFormatting here hint.  | 
      ||
| API Changes: | |||
| Internal Changes: | |||
Description (last modified by )
Attachments (7)
Change History (30)
by , 13 years ago
| Attachment: | ComponentAdminPanel.png added | 
|---|
comment:1 by , 13 years ago
| Description: | modified (diff) | 
|---|---|
| Summary: | Apply help class more widely → Apply hint/help classes more widely | 
by , 13 years ago
| Attachment: | ReportEditPage.png added | 
|---|
comment:2 by , 13 years ago
by , 13 years ago
| Attachment: | ReportEditPageOrig.png added | 
|---|
comment:3 by , 13 years ago
comment:4 by , 13 years ago
comment:5 by , 13 years ago
I'll wait for feedback on the changes before coming up with a patch to implement these changes throughout Trac, but on first review, here is where changes would need to be made:
- (you may use WikiFormatting here): on the following pages:
- Milestone Edit
 - Ticket
 - Admin Ticket System and Admin Manage Repositories
 
 - Milestone Edit: Format: MM/DD/YYYY hh:mm:ss a should be wrapped in a 
spanwith classhint(like the Admin Milestone Edit page), rather than being wrapped inem, and the CSS rule for#edit emcan be removed. 
comment:6 by , 12 years ago
| Description: | modified (diff) | 
|---|
comment:7 by , 12 years ago
| Milestone: | → undecided | 
|---|
comment:8 by , 12 years ago
Using the hint styles for this sounds good to me. Visually I also like the label[for=comment] { float: right } in ticket.css.
comment:9 by , 11 years ago
| Milestone: | undecided → 1.1.3 | 
|---|---|
| Owner: | set to | 
| Status: | new → assigned | 
comment:10 by , 11 years ago
| Reporter: | changed from to | 
|---|
comment:11 by , 11 years ago
| Milestone: | 1.1.3 → next-dev-1.1.x | 
|---|---|
| Owner: | removed | 
| Status: | assigned → new | 
comment:12 by , 10 years ago
| Milestone: | next-dev-1.1.x → next-dev-1.3.x | 
|---|
Narrowing focus for milestone:1.2. Please move ticket to milestone:1.2 if you intend to fix it.
comment:13 by , 8 years ago
| Milestone: | next-dev-1.3.x → 1.3.3 | 
|---|---|
| Owner: | set to | 
| Status: | new → assigned | 
by , 8 years ago
| Attachment: | Screen Shot 2017-07-25 at 17.25.11.png added | 
|---|
follow-up: 16 comment:14 by , 8 years ago
I implemented the comment:8 suggestion: [5f04fe87f/rjollos.git].
comment:15 by , 8 years ago
| Release Notes: | modified (diff) | 
|---|
I wrapped the text in a label so that clicking on the hint puts focus on the textarea. A span could be used if there are any problems with having multiple labels for each textarea. According to the HTML spec at least it is okay, but maybe there is an accessibility or other concern that I'm not aware of.
by , 8 years ago
| Attachment: | wiki_toolbars_disabled_20170727T130259.png added | 
|---|
comment:16 by , 8 years ago
Replying to Ryan J Ollos:
I implemented the comment:8 suggestion: [5f04fe87f/rjollos.git].
Looks good to me but two lines is required when [trac] wiki_toolbars is disabled. Before the changes, one line was required.
comment:18 by , 8 years ago
[c213a08d6/rjollos.git] changes the label to be a block element. Additional styling improvements in [2df0ce7ce/rjollos.git].
by , 8 years ago
| Attachment: | Screen Shot 2017-08-01 at 17.29.22.png added | 
|---|
comment:19 by , 8 years ago
by , 8 years ago
| Attachment: | Screen Shot 2017-08-01 at 18.58.17.png added | 
|---|
follow-up: 21 comment:20 by , 8 years ago
| Release Notes: | modified (diff) | 
|---|
It seems to be much simpler to move the hint to the lower corner of the textarea, and I think it will behave better with themes like the one on t.e.o and with varying screen widths.
follow-up: 22 comment:21 by , 8 years ago
Replying to Ryan J Ollos:
It seems to be much simpler to move the hint to the lower corner of the
textarea, and I think it will behave better with themes like the one on t.e.o and with varying screen widths.
It looks simple and good to me. I didn't think .css('display', 'block') in wikitoolbar.js at rjollos.git@t11112_hint_help is good.
However, I think we should use text-align: right rather than float: right in label.trac-textarea-hint like #help.
comment:22 by , 8 years ago
Replying to Jun Omae:
However, I think we should use
text-align: rightrather thanfloat: rightinlabel.trac-textarea-hintlike#help.
That's a good idea. It fixes the vertical margin on the report edit page.
comment:23 by , 8 years ago
| Resolution: | → fixed | 
|---|---|
| Status: | assigned → closed | 
Committed to trunk in r16179.









  
Here is an example of the kind of changes I had in mind:
hintclass to text on the Report Edit page.Here is the result - the two lines to the right of the labels have a new styling: