Skip to content

Conversation

@Paul-Hebert
Copy link
Contributor

@Paul-Hebert Paul-Hebert commented Jul 16, 2021

Overview

This PR adds an "Overview" object which is used on the Article Listing pages to show a full list of topics and a search bar. The Article Listings prototype was updated to use this component

Screenshots

Screen Shot 2021-07-16 at 12 32 02 PM

Screen Shot 2021-07-16 at 12 32 08 PM

Testing

  1. Compare the Article Listings prototype on the current site and the preview deploy. They should look pretty much identical
  2. Confirm on the preview deployyou can use the VoiceOver rotor in Safari and see there is a "More Topics region" listed in the Landmarks section. (enable VoiceOver. press Option, Command, U. If necessary, use the arrow keys to navigate to the Landmarks section)
  3. Confirm there are no regressions with heading permalinks.

/CC @dromo77

@changeset-bot
Copy link

changeset-bot bot commented Jul 16, 2021

🦋 Changeset detected

Latest commit: 074105d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@cloudfour/patterns Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

'@cloudfour/patterns': major
---

Renamed the Heading property from `permalink_id` to `id` and allowed you to use `id` when `permalink` is false.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is technically a breaking change, though as far as I can tell we're not usingpermalink_id anywhere yet.

}
}

.topics-header {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This prototype CSS was replaced by the new Object CSS.

@Paul-Hebert Paul-Hebert requested review from a team July 16, 2021 19:58
@Paul-Hebert Paul-Hebert marked this pull request as ready for review July 16, 2021 19:58
Comment on lines +12 to +20
.o-overview__header {
margin-bottom: ms.step(1);
}

.o-overview__actions {
margin-bottom: ms.step(3);
}

@supports (display: grid) {
Copy link
Member

Choose a reason for hiding this comment

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

Do you think this is necessary? We aren't optimizing for IE, and the content seems perfectly accessible without grid if the spacing's a little off in this section.

I'm open to it, I was just surprised to see these fallbacks and then the margin resets later on for a relatively simple layout object.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't have strong feelings here.

The only change for IE11 was the @supports statement itself. The margins and margin resets were to handle the layout changes between small screens and large screens. I attempted to simplify this an use display: grid with gaps on all screen sizes, but this didn't quite match the prototype design. (On small screens there are two different margin sizes, so it doesn't map to a consistent gap.)

All that said, I'm totally fine removing the supports statement if it's just extra cruft.

Copy link
Member

Choose a reason for hiding this comment

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

I didn't realize the margin resets were also a responsive concern. In that case this isn't much cruft at all.

Comment on lines +23 to +28
@include fluid.column-gap(
breakpoint.$s,
breakpoint.$xl,
size.$spacing-gap-fluid-min,
size.$spacing-gap-fluid-max
);
Copy link
Member

Choose a reason for hiding this comment

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

I'm torn on this. column-gap does seem to be well supported in Grid, though not quite as well supported as grid-column-gap. (We added this mixin for use with the columns property.)

I think it's probably fine, just typing out my initial pause.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I had initially used grid-column-gap when building out this component but VS Code warned me it was deprecated and that I should use column-gap. The support for column-gap and grid-column-gap seems the same in Safari which is the main modern browser I'd worry about since updates are tied to OS updates.

That said, I don't have strong feelings about it and would be fine swapping over.

grid-template-areas:
'header header actions'
'content content content';
grid-template-columns: repeat(3, minmax(max-content, 1fr));
Copy link
Member

Choose a reason for hiding this comment

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

Why max-content?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good question. I'd copied that over from the prototype without thinking about it. This can be simplified.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I simplified this to grid-template-columns: repeat(3, 1fr);. Let me know if you think a different value would make more sense.

@Paul-Hebert Paul-Hebert requested a review from tylersticka July 16, 2021 20:28
@Paul-Hebert Paul-Hebert merged commit 7bce713 into v-next Jul 16, 2021
@Paul-Hebert Paul-Hebert deleted the feat/overview branch July 16, 2021 21:38
@github-actions github-actions bot mentioned this pull request Jul 16, 2021
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.

Index pattern

3 participants