Convert <label is="text-link"> to HTML anchor in about:preferences#sync
Categories
(Toolkit :: UI Widgets, task)
Tracking
()
People
(Reporter: hjones, Assigned: tosinorunesajo, Mentored)
References
(Blocks 1 open bug)
Details
(Keywords: good-first-bug, Whiteboard: [lang=html][fidefe-reusable-components])
Attachments
(3 files, 1 obsolete file)
There's a "Connect another device" link in about:preferences#sync
that's currently using <label is="text-link">
but should be pretty straightforward to convert to use an anchor. See the attached image for more context.
To help Mozilla out with this bug, follow these steps:
- Comment here on the bug that you want to volunteer to help. This will tell others that you're working on the next steps.
- Download and build the Firefox source code
- If you have any problems, please ask on Element/Matrix in the
#introduction
channel. They're there to help you get started. - You can also read the Firefox Contributors' Quick Reference, which has answers to most development questions.
- If you have any problems, please ask on Element/Matrix in the
- Start working on this bug.
- To find the dialog in Firefox, navigate to
about:preferences#sync
. In order to see this link and ensure it's working as expected you will likely have to sign up for a Firefox account and sign in. Instructions on how to do that can be found here. - The code for the link can be found here.
- There's another anchor in the same file that can be used as a reference for what we're trying to do.
- If you have any problems with this bug, please comment on this bug and set the needinfo flag for me. Also, you can find me and my teammates on the
#reusable-components
channel on Element/Matrix most hours of most days.
- To find the dialog in Firefox, navigate to
- Build your change with
mach build
and verify your changes locally. Also check your changes for adherence to our style guidelines by usingmach lint
- Submit the patch (including an automated test, if applicable) for review. Mark me as a reviewer so I'll get an email to come look at your code.
- Getting your code reviewed
- This is when the bug will be assigned to you.
- After a series of reviews and changes to your patch, I'll mark it for checkin or push it to autoland. Your code will soon be shipping to Firefox users worldwide!
I'm looking into bug and working on the next steps to correct the link with <label is="text-link"> to use an anchor
Reporter | ||
Comment 2•1 year ago
|
||
Great, thanks! I've gone ahead and set you as the assignee for this bug. You should be able to get set up and started on the bug by following the steps in my first comment. If you run into any issues or have questions you can request information from me using the form below, or reach out to me and my teammates in #reusable-components
on Matrix.
<a id="connect-another-device"
class="text-link fxaMobilePromo"
data-l10n-id="sync-connect-another-device">
Connect Another Device
</a>
:
this is the change i wish to make but i'm having issues setting up mozilla build and I'm a bit lost on what exactly the process would be like to set it up
i would appreciate an explanation
I've left you a mail of my screen
thank you
Reporter | ||
Comment 4•1 year ago
|
||
Hey, I believe I responded to your email, but let me know if you're still having issues with getting set up.
Your proposed code change looks like it's on the right track, thanks! One thing to note is you'll need to specify that this is an HTML anchor since this is in an xhtml
document. You can do that by adding the html
namespace to your code like this: <html:a ... />
You can see an example of how this was done a little higher up in that same file: https://searchfox.org/mozilla-central/source/browser/components/preferences/sync.inc.xhtml#82-83
Reporter | ||
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Reporter | ||
Updated•1 year ago
|
Reporter | ||
Comment 10•1 year ago
|
||
Hey :tosinsajo unfortunately this bug has already been fixed by code submitted for a different bug. Sorry about that! We try to avoid filing duplicate bugs, but it still happens sometimes. Let me know if you want help finding another bug to work on instead.
Assignee | ||
Comment 11•1 year ago
|
||
(In reply to Hanna Jones [:hjones] from comment #10)
Thank you for letting me know and appreciate if you could suggest another bug for me to work on.
Reporter | ||
Comment 12•1 year ago
|
||
Description
•