Closed joewhitsitt closed 1 year ago
I think we still need card__meta
: https://github.com/uiowa/uids/pull/785/files#diff-8e038ebe0a97c988224576ad941b3eac4a9fa27cf477e105f6d4d7ca81ba98c8L129-L138
I'm looking to add the container queries polyfill:
<script type="module">
if (!("container" in document.documentElement.style)) {
import("https://unpkg.com/container-query-polyfill@^0.2.0");
}
</script>
https://storybook.js.org/docs/react/addons/writing-presets#previewmanager-templates https://storybook.js.org/docs/react/configure/story-rendering#adding-to-head
Checking this, I am seeing that Herky is being squashed on person profile cards. I talked to @bspeare and it seems like we will normally have a 1x1 aspect ratio for these images, but is it desirable for us to do some sort of object fit so that people who are not using images styles à la Drupal can still just slap in whatever photo they want?
Seeing how we are re-organizing things in this issue, I would love to have a pass that we go through to re-title prop and slot labels and organize them in to more reasonable groupings for controls. Just a few UX/consistency updates can go a long way
is it desirable for us to do some sort of object fit
I think if this is to be used by folks outside of Drupal, it would be good to have. Not sure how that conflicts with https://github.com/uiowa/uids/issues/804 though.
Could we switch the "Display Options > No border" to "Display Options > Border > True/False"? The double negative could cause confusion.
Circle image doesn't seem to work with horizontal orientation (left or right), unless you set the circle image first, but then orientation doesn't work.
Stacked, circle, padded or not: image size doesn't change between medium and large.
No corresponding "collection" items found.
If nobody minds another set of eyes I have some free time and can also look at this.
Tried circle image with left and right orientation. Didn't seem to work:
Noticed similar behavior with other images crop with left/right orientation. It didn't seem to switch.
Stacked, circle, padded or not: image size doesn't change between medium and large.
When circle image is set within "stacked", the media—padded
class needs to be applied. I assume we will be adding the media--padded
class programmatically in SiteNow when that selection is made?
Tried circle image with left and right orientation. Didn't seem to work:
@makurj Try changing the viewport to "Tablet", all mobile styles are forced into the stacked format currently.
That worked! Thanks, Ben.
"Image Using Font Awesome Icon": The icon disappears on "large mobile" with any shape other than "widescreen", no matter the orientation. It appears fine for tablet viewport.
"Image Using Font Awesome Icon": The icon disappears on "large mobile" with any shape other than "widescreen", no matter the orientation. It appears fine for tablet viewport.
I'd be in favor of hiding this story for now. I don't think this story is finished and it's not something we are using in SiteNow currently.
Could we switch the "Display Options > No border" to "Display Options > Border > True/False"? The double negative could cause confusion.
So this did confuse me! Especially because a different section has Media > Border > True/False. I'm thinking we set up our default card so that all extra options are False. And since we wanted a card border but no media border for default, the card border option ended up being No border set as False and media border just Border set as False. So, it makes sense why we did it this way, but I still think it's confusing to users (both the double negative and the options not matching) and worth discussing changing.
Not sure this is in scope, as it wasn't a combination option on the old UIDS site, but I wanted to document it for the future (assuming it isn't expected behavior).
When I turn on Align button to bottom
and Centered
when in tablet mode or have reset the viewport, the centering no longer takes effect. It varies between the two - reset viewport (computer view I assume?) aligns everything to the left. In tablet view, the content remains centered, but the title and link are left-aligned. This happens in all orientations - left, right, and stacked.
Also happening with the above combinations is that the subtitle and meta text behave strangely when both added. Subtitle by itself is left-aligned like the title and link. But when I start typing meta text the subtitle starts moving to the right. Meta text is left-aligned with and without the subtitle.
Edit: I figured out screenrecording! So you can see it instead of having to recreate it yourself.
Not in scope and not an error or loss of functionality but a change that may cause confusion: if the card has link text the Props category appears before Display Options. When you remove link text it appears after Display Options. aka I thought I broke something until I scrolled down.
pulling down
@media (min-width: 768px) .card--button-align-bottom .card__body
seems to override text-align: center;
with align-items: flex-start;
should this be a :not somehow?
@joewhitsitt I think we need to set a default margin at https://github.com/uiowa/uids/blob/f4fadd1bdedcdf2c0fd28713ec52301fef631574/src/components/card/card.scss#L89 on the bttn
to something like:
footer {
.bttn {
margin-top: 2rem;
}
}
Then this would work. I liked targeting the <footer>
for the margin on this but I think we need a default height set on the bttn
.
@bspeare i made that margin change, but there is still this alignment difference between 3.x and 4.x:
https://uids.brand.uiowa.edu/components/detail/card--centered-enclosed.html
@joewhitsitt can you share a link that contains the args in that screenshot?
@joewhitsitt I think https://github.com/uiowa/uids/pull/785#issuecomment-1292655784 is fixed by moving the <footer>
outside of card--body
.
This might have introduced a new oddity:
As a team we reviewed the feedback that was part of this PR and have fixed the items in scope.
Resolves https://github.com/uiowa/uids/issues/781
To test
Remaining tasks
click-ally.js
font-size: 1.5rem;
for card.headline
Potential additional tasks
Clear up the "border double negative"hold up for nowAlign button to bottom
andCentered
combinationsNotes for SiteNow
media—padded
modifier unless ‘borderless’ is selected.~media—padded
needs to be applied.