Closed
Bug 589154
Opened 14 years ago
Closed 14 years ago
Edit should be a label, not a menuitem
Categories
(Firefox :: Menus, defect)
Firefox
Menus
Tracking
()
RESOLVED
FIXED
Firefox 4.0b7
People
(Reporter: dao, Assigned: u88484)
References
Details
(Whiteboard: [strings])
Attachments
(3 files, 3 obsolete files)
1.88 KB,
patch
|
dao
:
review+
|
Details | Diff | Splinter Review |
1.88 KB,
patch
|
dietrich
:
approval2.0+
|
Details | Diff | Splinter Review |
1.87 KB,
patch
|
Details | Diff | Splinter Review |
Reporter | ||
Comment 2•14 years ago
|
||
Comment on attachment 468032 [details] [diff] [review] Patch v1 >- <menuitem id="appmenu-edit-menuitem" >- label="&editMenu.label;" >- disabled="true"/> >+ <label id="appmenu-edit-menuitem" >+ label="&editMenu.label;" >+ disabled="true"/> The id should be changed to appmenu-edit-label or something like that. The corresponding -moz-appearance: none; and background: transparent; in browser.css should be removed: http://mxr.mozilla.org/mozilla-central/source/browser/themes/winstripe/browser/browser.css#248 Does disabled="true" pick up the gray text color for labels?
Comment 3•14 years ago
|
||
Since this is a label and not a proper menu item, please make it use its own label text rather than reusing editMenu.label. We need that to localize it properly.
Reporter | ||
Comment 4•14 years ago
|
||
Comment on attachment 468032 [details] [diff] [review] Patch v1 Yeah, comment 3 makes another good point. This is a slightly different context, so some locales might want to alter the string.
Attachment #468032 -
Flags: review?(dao) → review-
(In reply to comment #2) > Comment on attachment 468032 [details] [diff] [review] > Patch v1 > > >- <menuitem id="appmenu-edit-menuitem" > >- label="&editMenu.label;" > >- disabled="true"/> > >+ <label id="appmenu-edit-menuitem" > >+ label="&editMenu.label;" > >+ disabled="true"/> > > The id should be changed to appmenu-edit-label or something like that. > Done > The corresponding -moz-appearance: none; and background: transparent; in > browser.css should be removed: > http://mxr.mozilla.org/mozilla-central/source/browser/themes/winstripe/browser/browser.css#248 > Done > Does disabled="true" pick up the gray text color for labels? Yes (In reply to comment #4) > Comment on attachment 468032 [details] [diff] [review] > Patch v1 > > Yeah, comment 3 makes another good point. This is a slightly different context, > so some locales might want to alter the string. Done
Attachment #468032 -
Attachment is obsolete: true
Attachment #469193 -
Flags: review?(dao)
Reporter | ||
Comment 6•14 years ago
|
||
Comment on attachment 469193 [details] [diff] [review] Patch v2 > command="Tools:PrivateBrowsing"/> > <menuseparator/> > <hbox class="split-menuitem"> Please remove this class as well. >- <menuitem id="appmenu-edit-menuitem" >- label="&editMenu.label;" >- disabled="true"/> >+ <label id="appmenu-edit-label" >+ label="&appMenuEdit.label;" >+ disabled="true"/> Does this keep the label aligned with the other menuitem labels? If not, it might be better to just change the id and the entity to make it clear that this isn't a menu item, conceptionally, but let it be a <menuitem> under the hood.
It actually doesn't show at all once I change it from menuitem to label even if disabled="true" is removed or changed to false. Uploading patch so you can see if I did something wrong or if we should just leave it as a menuitem
Attachment #469625 -
Flags: review?(dao)
Attachment #469193 -
Attachment is obsolete: true
Attachment #469193 -
Flags: review?(dao)
Reporter | ||
Comment 8•14 years ago
|
||
Yes, let's do this: change the id and the entity to make it clear that this isn't a menu item, conceptionally, but let it be a <menuitem> under the hood.
Reporter | ||
Updated•14 years ago
|
Attachment #469625 -
Flags: review?(dao)
(In reply to comment #8) > Yes, let's do this: change the id and the entity to make it clear that this > isn't a menu item, conceptionally, but let it be a <menuitem> under the hood. Done.
Attachment #469625 -
Attachment is obsolete: true
Attachment #470288 -
Flags: review?(dao)
Reporter | ||
Comment 10•14 years ago
|
||
Comment on attachment 470288 [details] [diff] [review] Patch v4 Thanks!
Attachment #470288 -
Flags: review?(dao) → review+
Attachment #470288 -
Flags: approval2.0?
Updated•14 years ago
|
Whiteboard: [strings]
Attachment #470288 -
Flags: approval2.0?
Updated•14 years ago
|
Attachment #471982 -
Flags: approval2.0? → approval2.0+
Assignee | ||
Comment 12•14 years ago
|
||
un-bitrotted patch for checkin
Keywords: checkin-needed
Comment 13•14 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/fcae8913e466
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 4.0b6
You need to log in
before you can comment on or make changes to this bug.
Description
•