The "Learn more" text of moz-support-link should not break across lines
Categories
(Toolkit :: XUL Widgets, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox113 | --- | fixed |
People
(Reporter: tgiles, Assigned: imlata1111, Mentored)
References
Details
(Keywords: good-first-bug, Whiteboard: [fidefe-reusable-components-ms3] [lang=css])
Attachments
(2 files)
The design recommendation is to prevent the "Learn more" text from splitting across two lines. We can accomplish this by using the display:inline-block
rule on the a[is='moz-support-link']
selector in preferences.css.
Reporter | ||
Updated•3 months ago
|
Reporter | ||
Updated•3 months ago
|
Updated•3 months ago
|
Hey, can I please be assigned to this issue? I already have firefox up and running on my local machine and would love to work on this issue as my first. Thank you.
Comment 3•3 months ago
|
||
(In reply to franklyn from comment #1)
Hi, I would like to help fix this bug
(In reply to Siya from comment #2)
Hey, can I please be assigned to this issue? I already have firefox up and running on my local machine and would love to work on this issue as my first. Thank you.
Needinfo'ing Tim :)
Btw, you might want to bring in :flod to verify that the proposed change is okay for all locales. I imagine it could be disadvantage when "Learn more" translates to a much longer string, or when it's even just a longer string to begin with such as "Learn more about [whatever]."
Comment 4•3 months ago
|
||
Can I work on this issue?
Comment 5•3 months ago
|
||
My setup is also ready, Please let me know if I can make a contribution.
Reporter | ||
Comment 6•3 months ago
|
||
Thanks for the reminder Dao, appreciate it!
:flod, do you foresee any issues with forcing the "Learn more" text of these new moz-support-link to potentially be on new lines in other locales? Attached is a screenshot showing one of these "Learn more" links with some modified text that moves the entire link to a new link. If the text was just "Learn more", then it would stay next to the rest of the text on the same line.
Comment 7•3 months ago
|
||
(In reply to Tim Giles [:tgiles] from comment #6)
:flod, do you foresee any issues with forcing the "Learn more" text of these new moz-support-link to potentially be on new lines in other locales? Attached is a screenshot showing one of these "Learn more" links with some modified text that moves the entire link to a new link. If the text was just "Learn more", then it would stay next to the rest of the text on the same line.
I don't think that should be problematic.
The existing translations for the stand-alone "Learn more" in mozSupportLink seem to be relatively short
https://transvision.flod.org/string/?entity=browser/browser/components/mozSupportLink.ftl:moz-support-link-text&repo=gecko_strings
Reporter | ||
Updated•3 months ago
|
hey Tim! Can I work on this bug? I am not actively working on any other bug right now. Can you assign me this? Otherwise, if there are any open bugs that need attention, I would be happy to take a look and see if I can help.
Reporter | ||
Comment 9•2 months ago
|
||
pratikaswani9333, are you still looking for a bug to work on? If so, you could pick this one up as it's been a few weeks since assigning this bug.
Lata, I'm going to see if pratikaswani9333 wishes to work on this first to give them an opportunity to contribute. If they do not wish to work on this, then I'll assign it to you.
Assignee | ||
Comment 10•2 months ago
|
||
Hey Tim! Since we didn't heard anything from pratikaswani9333. Can I work on this now?
Reporter | ||
Comment 11•2 months ago
|
||
Sure, Lata. Feel free to needinfo me if you need clarification, thanks.
Assignee | ||
Comment 12•2 months ago
|
||
Hey Tim! I was looking into the bug. As you explained, it seems like to prevent the "Learn more" text from splitting across two lines we can add this line of code
a[is='moz-support-link'] {
display: inline-block;
}
should be added in preferences.css. Will this be enough to solve this issue or there is something more to be taken care of? How can I locally test it to make sure it behave expected?
Reporter | ||
Comment 13•2 months ago
|
||
Hey Lata, you can test this by going to about:preferences#privacy and modifying the "Learn more" text under "Enhanced Tracking Protection" with the devtools inspector. After modifying this string to be a bit longer, say something like "Learn more about Enhanced Tracking Protection" or any other filler you wish to use, you can resize the browser and verify the "Learn more about Enhanced Tracking Protection" doesn't jump up to the rest of the text in that section.
Assignee | ||
Comment 14•2 months ago
|
||
Assignee | ||
Comment 15•2 months ago
|
||
Thank you Tim! I have checked in my local set up. I could see the differences before and after making the changes. However, if it require any changes further let me know.
Comment 16•2 months ago
|
||
Pushed by mconley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/40c64069c3cf The Learn more text of moz-support-link should not break across lines. r=tgiles,settings-reviewers,mconley
Comment 17•2 months ago
|
||
bugherder |
Description
•