Skip to content

feat(tile): Adding tile and tile group components - #1482

Open
phosphotungstic wants to merge 19 commits into
developfrom
feat/tile
Open

phosphotungstic wants to merge 19 commits into
developfrom
feat/tile

Conversation

@phosphotungstic

Copy link
Copy Markdown
Contributor

This change: (check at least one)

  • Adds a new feature
  • Fixes a bug
  • Improves maintainability
  • Improves documentation
  • Is a release activity

Is this a breaking change? (check one)

  • Yes
  • No

Is the: (complete all)

  • Title of this pull request clear, concise, and indicative of the issue number it addresses, if any?
  • Test suite(s) passing?
  • Code coverage maximal?
  • Changeset added?

What does this change address?
Adds a tile and tile group component.
Tile is used for information display, interactive link, and as a radio group or checkbox group.

How does this change work?
Adds in a <PharosTile> component with slots to allow for customization.
It then uses <PharosTile> for the input group.

@changeset-bot

changeset-bot Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 10ec066

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

This PR includes changesets to release 1 package
Name Type
@ithaka/pharos Minor

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

@github-actions

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
packages/pharos/lib/index.js 58.45 KB (+3.61% 🔺)

registerStorybookComponents([PharosTileGroup, PharosTile, PharosIcon, PharosHeading, PharosButton]);

const meta = {
title: 'Components/Tile Group',

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Debating if this should be in forms?
I feel like tile wouldn't want to be though...

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yeah, maybe have Tile Group in Forms. The Tile itself probably makes sense in Components, although it does extend the base form element 🤔

@phosphotungstic
phosphotungstic marked this pull request as ready for review November 23, 2026 10:42
@phosphotungstic
phosphotungstic requested a review from a team as a code owner November 23, 2026 10:42
@phosphotungstic
phosphotungstic requested review from jialin-he, lizlove and satya-achanta-venkata and removed request for a team November 23, 2026 10:42
@brentswisher
brentswisher self-requested a review November 23, 2026 13:02

@brentswisher brentswisher left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

😄 I realize there are a lot of comments, but that's because this new component covers so much, it's looking really good!

super.connectedCallback();

// Slotted content decides which sections render, so re-render when it changes
this._observer = new MutationObserver(() => this.requestUpdate());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🤔 I wonder if slotchange would be better here? I think either would work though.

* @slot - Contains the body of the tile, such as a description.
* @slot footer - Contains the footer content of the tile, such as status text.
*
* @fires change - Fires when the selected state has changed (selection tiles only)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should the pharos-tile-state-change be listed as an event it fires too, or should that only be used internally?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same idea as the tile stories: I like the examples, but maybe organize them like the other form groups:

  • Match Radio Group and Checkbox Group with Base, Events, Validity, FormData and Compact.
  • Combine the visual variations into an Indicators story (top right, selected icon only)
  • Add a "rich content" story that replaces Pricing. That makes it a little more obvious what the component is showing off

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