Repository navigation
feat(tile): Adding tile and tile group components - #1482
phosphotungstic wants to merge 19 commits into
Conversation
🦋 Changeset detectedLatest commit: 10ec066 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
size-limit report 📦
|
…el that's used for input not the tile
| registerStorybookComponents([PharosTileGroup, PharosTile, PharosIcon, PharosHeading, PharosButton]); | ||
|
|
||
| const meta = { | ||
| title: 'Components/Tile Group', |
There was a problem hiding this comment.
Debating if this should be in forms?
I feel like tile wouldn't want to be though...
There was a problem hiding this comment.
Yeah, maybe have Tile Group in Forms. The Tile itself probably makes sense in Components, although it does extend the base form element 🤔
brentswisher
left a comment
There was a problem hiding this comment.
😄 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()); |
There was a problem hiding this comment.
🤔 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) |
There was a problem hiding this comment.
Should the pharos-tile-state-change be listed as an event it fires too, or should that only be used internally?
There was a problem hiding this comment.
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
Co-authored-by: Brent Swisher <brent@brentswisher.com>
Co-authored-by: Brent Swisher <brent@brentswisher.com>
This change: (check at least one)
Is this a breaking change? (check one)
Is the: (complete all)
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.