| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Codecov Report
@@ Coverage Diff @@
## master mozilla/addons-frontend#7958 +/- ##
==========================================
+ Coverage 98.04% 98.09% +0.05%
==========================================
Files 258 259 +1
Lines 7152 7349 +197
Branches 1325 1325
==========================================
+ Hits 7012 7209 +197
Misses 126 126
Partials 14 14
Continue to review full report at Codecov.
|
Sorry, something went wrong.
|
Oops, somehow the test didn't get added. Let me try to find it! |
Sorry, something went wrong.
|
After working on integrating this into the details page, I made a few tweaks to the styles. Here's a new screenshot of storybook at large screen size: and one at less than large screen size: |
Sorry, something went wrong.
Do we want to add _target=blank? |
Sorry, something went wrong.
|
Thanks for the review @willdurand. I have addressed your comments about the storybook story, but for all of the other ones we are awaiting more information. |
Sorry, something went wrong.
Yes, I think so. I've added it. |
Sorry, something went wrong.
|
I received the proper icon, and I have attempted to style it according to the latest prototype. I have not been entirely successful, but it's a start and maybe someone can help me improve it. Here's what it currently looks like in storybook: |
Sorry, something went wrong.
|
@MeridelW Can you confirm what the text should be when hovering over the recommended badge? I've looked through some of the docs about this, but I'm not sure of the final decision. I currently have "Recommended extensions are safe, high-quality extensions." Oops, I really should have added this to the issue, not to the PR. I'll repeat it there. Sorry for the noise. |
Sorry, something went wrong.
There was a problem hiding this comment.
Nice! I played with the CSS and here is a patch: https://gist.github.com/willdurand/15fe2ddba5aaec10198d0fd634a41584
It's not perfect but it goes in the direction that I'd like to take in order to merge this patch :)
Sorry, something went wrong.
| rel="noopener noreferrer" | ||
| target="_blank" | ||
| title={i18n.gettext( | ||
| 'Recommended extensions are safe, high-quality extensions.', |
There was a problem hiding this comment.
Is this the final copy? (it looks like but if not, let's create a new issue)
Sorry, something went wrong.
There was a problem hiding this comment.
I asked @MeridelW in the issue to confirm whether that is the final text or not. I will open up and issue to track that question, as I gather we might land this before we have a final answer.
Sorry, something went wrong.
| className="RecommendedBadge-link" | ||
| href="https://support.mozilla.org/" | ||
| rel="noopener noreferrer" | ||
| target="_blank" |
There was a problem hiding this comment.
I am pretty sure it's done automatically but we should double-check that rel="noopener noreferrer" is added.
Sorry, something went wrong.
There was a problem hiding this comment.
I'm not sure I understand. Do you mean add a test to assert that the prop is there?
Sorry, something went wrong.
There was a problem hiding this comment.
No sorry, I meant manually looking at the generated HTML :p
Sorry, something went wrong.
There was a problem hiding this comment.
Looking at it in Storybook, I see rel="noopener noreferrer" on the a tag.
Sorry, something went wrong.
Thanks @willdurand, that is much better indeed. I noticed that it kind of breaks in rtl mode though: But I think I fixed that by using padding-end and padding-start. This is ready for another look. |
Sorry, something went wrong.
There was a problem hiding this comment.
r+wc, thanks!
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fixes mozilla/addons#13153
Note that I am using the existing "trophy" icon that is used for "Staff Pick", but this will be replaced by a newer icon. I am waiting to acquire that from @brassy-. Note also that the color of the text is from the InVision mockup at https://mozilla.invisionapp.com/share/BXQTIIC86ZN.
Note also that we do not have a SUMO article to link to yet, so currently the link just points to SUMO. I have opened mozilla/addons#13155 as a follow-up to update the link once it is available.
Here's a screenshot of the component in storybook:
