Closed Bug 1765456 Opened 2 years ago Closed 2 years ago

Move the cancel icon used by about:newtab to the shared icon library in toolkit/themes/shared/icons

Categories

(Firefox :: New Tab Page, task, P5)

task

Tracking

()

RESOLVED FIXED
101 Branch
Tracking Status
firefox101 --- fixed

People

(Reporter: sfoster, Assigned: arjunkrishnababu96, Mentored)

Details

(Keywords: good-first-bug, Whiteboard: [lang=css])

Attachments

(1 file)

browser/components/newtab/data/content/assets/glyph-cancel-16.svg is a variation of /toolkit/themes/shared/icons/close.svg. I think it makes most sense to move glyph-cancel-16.svg to live alongside the existing icon in the toolkit icon library. It should be named close-fill.svg.

Your patch should:

  • hg mv (or git equivalent) the file at browser/components/newtab/data/content/assets/glyph-cancel-16.svg to toolkit/themes/shared/icons/close-fill.svg. This way we keep version history.
  • You will need to update the toolkit/themes/shared/desktop-jar.inc.mn manifest (please maintain alphabetical sorting) to include the new .svg
  • You'll need to find and update all references to point at chrome://global/skin/icons/close-fill.svg
  • See the docs for hacking on newtab for details on how to edit CSS and refresh the bundle

You should always build and run with your changes to verify them. In this case I'm not sure there is an easy way to see the .icon-clear-input class in use, but you can check that chrome://global/skin/icons/close-fill.svg resolves to the correct icon when entered into the url bar.

I'd like to work on this.

This was done because the existing cancel icon (browser/components/newtab/data/content/assets/glyph-cancel-16.svg) is a variation of the (/toolkit/themes/shared/icons/close.svg) in the toolkil icon library and it makes sense for the former to live alongside the latter.

Assignee: nobody → arjunkrishnababu96
Status: NEW → ASSIGNED
Pushed by sfoster@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f58543c27938
Move the cancel icon used by about:newtab to the shared icon library in toolkit/themes/shared/icons r=sfoster,desktop-theme-reviewers
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 101 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: