Skip to content
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

(#4414) NCIDS 2 Column Updates - Image & Video #4467

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

dev-rana-publicis
Copy link
Contributor

@dev-rana-publicis dev-rana-publicis commented Oct 9, 2024

@dev-rana-publicis dev-rana-publicis force-pushed the ticket/4414-2-column-updates branch 2 times, most recently from 6ae2c92 to a4f7a79 Compare October 10, 2024 16:58
@cgdp-management-server
Copy link

ODE Deployment

Code has been deployed to ODE 838.

@dev-rana-publicis dev-rana-publicis marked this pull request as ready for review October 10, 2024 19:05
Copy link
Member

@bryanpizzillo bryanpizzillo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Images and videos should be within a <figure> element using <figcaption> for the caption. I am going to call in @olitharp-nci on this on what we should explicitly do. E.g. is it something like:

<figure class="nci-figure">
   <img class="nci-image">
   <figcaption class="nci-figure__caption">
      <span class="nci-figure__source">...
   </figcaption>

Or,
The following where we have some figure mixins.

<figure class="nci-image">
</figure>

OR,

<figure class="nci-figure nci-figure--image">
</figure>

Figures are used all over for Images, Videos, Tables. Technically MDN even suggests figures for pull quotes.

@dev-rana-publicis dev-rana-publicis force-pushed the ticket/4414-2-column-updates branch from a4f7a79 to 17b479c Compare October 14, 2024 15:10
@dlescarbeau dlescarbeau force-pushed the ticket/4414-2-column-updates branch from 17b479c to 2d9e00a Compare October 14, 2024 16:56
Copy link
Member

@bryanpizzillo bryanpizzillo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall comments so I don't have to write them for each aspect ratio:

  1. The cgov_image display modes should not be named ncids_aspect_ratio_X_Y.
    • Once again the ncids_image paragraph name is a little vague, but whatever.
    • This is going to suck a but it should follow what we have been doing for other components.
      • The labels should be Image Display: NCIDS Image: XxY Crop
      • The machine names should be ncids_image_ncids_image_XxY.
        • Yes, I see ncids_image is there twice, but it is following what we did for Promo, Feature Cards and Flag Cards.
  2. You need different image styles for each of the renderings. Do not reuse ncids_featured or ncids_promo. You should have your own set of display modes and they need to set the max width to whatever the appropriate max width is for these use cases. The image style is for the presentation use of that image, not some sort of generic thing.

@dlescarbeau dlescarbeau force-pushed the ticket/4414-2-column-updates branch from 2d9e00a to 468be4a Compare October 14, 2024 17:41
Copy link
Member

@bryanpizzillo bryanpizzillo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few more items

@dev-rana-publicis dev-rana-publicis force-pushed the ticket/4414-2-column-updates branch 3 times, most recently from a7ce339 to 689c2cb Compare October 15, 2024 04:55
@dlescarbeau dlescarbeau force-pushed the ticket/4414-2-column-updates branch 4 times, most recently from 2fffd26 to 5585a69 Compare October 16, 2024 14:49
@blilianyu
Copy link

blilianyu commented Oct 17, 2024

@dev-rana-publicis @dlescarbeau
Looks great but a couple things:

  • Credit field should be optional
  • Video caption margin is showing -4px top but it seems even smaller than Images. Can we make it the same?
Screenshot 2024-10-17 at 3 59 50 PM

Copy link
Member

@bryanpizzillo bryanpizzillo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requesting changes for me to make - but also requirements.

@KateMashkinaNIH
Copy link

  1. Caption is not displayed on 16:9 ( english and spanish)
  2. Credit field is not translated
  3. Image NCIDS Promo Art 1:1 Override Field is not translatable  #4472 - it was just discovered, but it affects this component along with lists, promo blocks etc ( anywhere where NCIDS 1:1 override is used )

@dlescarbeau dlescarbeau force-pushed the ticket/4414-2-column-updates branch 3 times, most recently from 097d511 to ad8b761 Compare October 21, 2024 19:39
@sarinapadilla
Copy link
Contributor

Per client feedback on 10/24:

  • Keeping the caption/credit styling as is
  • Uupdating caption font size to 2xs (14px)
  • Updating credit font size to 3xs (13px)

@dlescarbeau dlescarbeau force-pushed the ticket/4414-2-column-updates branch 2 times, most recently from 2e6e9b1 to 6c7d121 Compare October 25, 2024 20:49
@bennettcc
Copy link

Federal team has approved this PR - reviewed by Anna and Alex on 10/29

@dev-rana-publicis dev-rana-publicis force-pushed the ticket/4414-2-column-updates branch from 6c7d121 to eb9f1c6 Compare October 29, 2024 16:30
@andyvanavery31 andyvanavery31 requested a review from a team October 29, 2024 16:36
Copy link

@andyvanavery31 andyvanavery31 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Passes product review.

@bryanpizzillo bryanpizzillo merged commit 920f07c into develop Oct 29, 2024
5 checks passed
@bryanpizzillo bryanpizzillo deleted the ticket/4414-2-column-updates branch October 29, 2024 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Story: Add Image and Video to Content Allowed in MLP NCIDS 2 Column Layout
7 participants