You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(tile-group): add Tile Group component (#8806)
**Related Issues:** #8615#6691#6662
## Summary
This PR adds the new `calcite-tile-group` component. It includes these
responsiveness features that address #6691:
- Wrapped Tiles match width of Tiles above
- Wrapped Tiles match height of tallest Tile in the group
The changes in this PR were extracted from and depend on the changes in
#8681.
---------
Co-authored-by: Erik Harper <eriklharper@pm.me>
|`disabled`|`disabled`| When `true`, interaction is prevented and the component is displayed with lower opacity. |`boolean`|`false`|
10
+
|`layout`|`layout`| Defines the layout of the component. Use `"horizontal"` for rows, and `"vertical"` for a single column. |`"horizontal" \| "vertical"`|`"horizontal"`|
11
+
|`scale`|`scale`| Specifies the size of the component. |`"l" \| "m" \| "s"`|`"m"`|
description="Leverage agile frameworks to provide a robust synopsis for high level overviews. Iterative approaches to corporate strategy foster collab on thinking to further the overall."
50
+
icon="layers"
51
+
></calcite-tile>
52
+
<calcite-tile
53
+
heading="Tile heading lorem ipsum"
54
+
href="/"
55
+
description="Leverage agile frameworks to provide a robust synopsis for high level overviews. Iterative approaches to corporate strategy foster collab on thinking to further the overall."
56
+
icon="layers"
57
+
></calcite-tile>
58
+
<calcite-tile
59
+
heading="Tile heading lorem ipsum"
60
+
href="/"
61
+
description="Leverage agile frameworks to provide a robust synopsis for high level overviews. Iterative approaches to corporate strategy foster collab on thinking to further the overall."
62
+
icon="layers"
63
+
></calcite-tile>
64
+
</calcite-tile-group>`,
65
+
{focusTarget: "child"},
66
+
);
67
+
});
68
+
69
+
describe("prop passing",()=>{
70
+
it("tiles receive parent scale prop on initial load and when scale attribute is mutated",async()=>{
0 commit comments