Skip to content

Update WGNews.astro - #85

Merged
dbharbin merged 2 commits into
CoreCollective-dev:mainfrom
nathalie-ckc:update-wg-news-component
Aug 20, 2026
Merged

dbharbin merged 2 commits into
CoreCollective-dev:mainfrom
nathalie-ckc:update-wg-news-component

Conversation

@nathalie-ckc

@nathalie-ckc nathalie-ckc commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

The links are showing up left-justified whereas the rest of the text in the news component is showing up center justified.

Following GitHub Copilot's guidance to add centering classes to the links container.

Why don't I see "justify-center" on any of the "headline" or "body" containers? Copilot's answer: because those elements are being centered by text alignment, not by flex alignment.

headline (<h3>) and body (<p>) are plain block/text elements. They’re centered via a parent with text-center (or inherited centering), which affects inline text. justify-center only works on flex/grid containers to align child items along the main axis. So for your links:

The

    is flex, so it needs justify-center.
    Without it, flex defaults to justify-start, which is why links sit left. In short:

    Text elements → text-center
    Flex item rows → justify-center

The links are showing up left-justified whereas the rest of the text in the news component is showing up center justified.

Following GitHub Copilot's guidance to add centering classes to the links container.

Why don't I see "justify-center" on any of the "headline" or "body" containers?
Copilot's answer: because those elements are being centered by text alignment, not by flex alignment.

headline (<h3>) and body (<p>) are plain block/text elements.
They’re centered via a parent with text-center (or inherited centering), which affects inline text.
justify-center only works on flex/grid containers to align child items along the main axis.
So for your links:

The <ul> is flex, so it needs justify-center.
Without it, flex defaults to justify-start, which is why links sit left.
In short:

Text elements → text-center
Flex item rows → justify-center
@dbharbin

dbharbin commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Let's discuss - I'm not crazy about having a cross-group News Update on each WG page. I left it in the WoA page as you had it since it listed WoA news updates. But having a news bulletin above the fold of each of these pages designed to reference specific WG content seemed a bit busy. That's why I left is out of the other WG summary pages. Perhaps have that elsewhere, or even on the Hub home page?

@nathalie-ckc

Copy link
Copy Markdown
Contributor Author

@dbharbin News was requested by WoA SC. Philip's guidance on design for news & placement wrt fold in COR-112 (13th Aug 09:55 PT). Can discuss Thur

Make some of the changes discussed with Don:
* News headline larger (lg -> xl)
* have the link open in a new tab
* have the link appear underlined so that it's obvious it's a link without having to hover
@nathalie-ckc

Copy link
Copy Markdown
Contributor Author

@dbharbin : First set of changes I made address some of your feedback

  • Headline is bigger
  • URL is underlined
  • Link opens in new tab

Could we merge with just these changes?

I suggest to make the left justification with tabbing a separate item that we get @pcolmer help on, because that's beyond what I can muddle through.

Whether the news should be at top/bottom/elsewhere can also be addressed in a separate PR after discussion with WoA SC

@dbharbin
dbharbin merged commit 63a5b24 into CoreCollective-dev:main Aug 20, 2026
2 checks passed
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.

2 participants