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

Stories - Callout Component #9

Open
joewhitsitt opened this issue Jan 29, 2020 · 3 comments
Open

Stories - Callout Component #9

joewhitsitt opened this issue Jan 29, 2020 · 3 comments
Labels
backlog Work that is not currently being done, but has been identified as important stories.uiowa.edu

Comments

@joewhitsitt
Copy link
Contributor

fields

  • field_position (select (left, center, right))
  • field_image (media image, Scale and crop 300x300)
  • field_callout_heading (text)
  • field_callout_call_to_action (link, optional title, displayed as button)

notes

  • similar to hds card with float option so that text can wrap around it.
  • position also affects text alignment (e.g. center).

css/js/template

https://github.com/ITS-UofIowa/uiowa.edu.stories/blob/master/themes/stories/scss/components/paragraphs/_callout.scss

examples

/node/791

callout-body-only
callout-body-only
callout-center
callout-center
callout-right-img
callout-img
callout-right
callout-right

@joewhitsitt joewhitsitt transferred this issue from another repository Jan 31, 2020
@pyrello pyrello added the backlog Work that is not currently being done, but has been identified as important label Apr 5, 2020
@pyrello
Copy link
Contributor

pyrello commented May 26, 2022

Seems like this could be handled with the card component. We should review these requirements for #696 to make sure that we are getting everything we will need for the stories site.

@bspeare
Copy link
Contributor

bspeare commented Jan 3, 2023

It looks like on now.uiowa.edu and stories.uiowa.edu the callouts are setting a fixed width:

.paragraphs-item-callout.left, .paragraphs-item-callout.right {
    width: 300px;
}

@pyrello
Copy link
Contributor

pyrello commented Jan 3, 2023

It looks like on now.uiowa.edu and stories.uiowa.edu the callouts are setting a fixed width

Maybe we could convert this to a width based on breakpoint?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Work that is not currently being done, but has been identified as important stories.uiowa.edu
Projects
None yet
Development

No branches or pull requests

3 participants