Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Avatar] Add shape parameter (#6103)
* Add shape param to Avatar * Add example to polaris.shopify.com page * Revert "Add example to polaris.shopify.com page" This reverts commit 3d2768f. * update fonts * revert font size changes (unneeded) * update font size * Update .changeset/yellow-worms-behave.md Co-authored-by: Kyle Durand <kyledurand@users.noreply.github.com> * use variationName for square css class (per code review) * add a test * Improve documentation to provide proper usage instructions * Update .changeset/yellow-worms-behave.md Co-authored-by: Chloe Rice <chloerice@users.noreply.github.com> Co-authored-by: Kyle Durand <kyledurand@users.noreply.github.com> Co-authored-by: Chloe Rice <chloerice@users.noreply.github.com>
- Loading branch information
1 parent
7a7bc0c
commit a622544
Showing
5 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@shopify/polaris': patch | ||
--- | ||
|
||
Added a `shape` prop to `Avatar` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,10 @@ | |
} | ||
} | ||
|
||
.shapeSquare { | ||
border-radius: var(--p-border-radius-05); | ||
} | ||
|
||
.hidden { | ||
visibility: hidden; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters