-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PNI - update minimum security standards section on product page #4088
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mmmavis This is looking great!
Just a few things:
-
The "Overall Security Rating" is currently inside a helptext div so it's font style is italic but it should be normal. I have it as Zilla Slab Light in the sketch file but if it's cleaner not to override I'm okay keeping it as whatever 'normal' is.
-
On mobile (not tablet) can we change the left/right padding for the section from 3rem to 1rem?
The rating's denominator and numerator are both in custom types already so I've overridden/customized them further according to your feedback above (so they match what are in the Sketch file).
I guess you mean padding within the grey box? If so, I've made some adjustments to it. |
@mmmavis The changes are better than I expected! One last thing: Can the grey box be full width on mobile, just like the image box? Right now there's like 1px of white space on the left and right sides: |
network-api/networkapi/buyersguide/templates/fragments/product_criterion_primary_info.html
Outdated
Show resolved
Hide resolved
@Pomax I've updated the PR based on your suggestions. Not sure if you are done for the year yet. If so, I can ask another dev to do the follow-up code review tomorrow instead. Happy holidays! 🎉 (Note I still need to fix the styling issue Becca mentioned above but that can be reviewed by another dev.) |
@@ -117,12 +117,32 @@ def product_view(request, slug): | |||
if product.draft and not request.user.is_authenticated: | |||
raise Http404("Product does not exist") | |||
|
|||
product_dict = product.to_dict() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this has tripped me up so much in the past =D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
python/template code wise this looks pretty good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The padding looks great @mmmavis !
Sorry one last question, would it be possible to make it 1/5 instead of 1.0/5? I think that would make it easier to scan. I can open a separate ticket if that's preferable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Going to approve this for now though since the 1.0/5 is not a style change!
Wow interesting find! Now I'm curious why |
I'll keep an eye on this in case the same issue appears again. |
Closes #4041
https://foundation-mofostaging-pr-4088.herokuapp.com/en/privacynotincluded/