Skip to content

Commit

Permalink
chore(s2-avatar): add sizing and border tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
cdransf committed Oct 30, 2024
1 parent 27dff7b commit f322aaa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/friendly-dolls-raise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@spectrum-css/avatar": major
---

Adds support for new avatar-size tokens (avatar-size-800 to avatar-size-1500). Updates avatar component story to support new sizes. Adds support for avatar-border-color and avatar-border-thickness.
4 changes: 2 additions & 2 deletions components/avatar/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ governing permissions and limitations under the License.
--spectrum-avatar-block-size: var(--spectrum-avatar-size-100);

--spectrum-avatar-border-radius: var(--spectrum-avatar-block-size);
--spectrum-avatar-border-thickness: var(--spectrum-avatar-border-thickness);
--spectrum-avatar-border-color: var(--spectrum-avatar-border-color);
--spectrum-avatar-border-thickness: var(--spectrum-avatar-border-width);
--spectrum-avatar-border-color: rgb(var(--spectrum-gray-25-rgb));

--spectrum-avatar-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness);
--spectrum-avatar-focus-indicator-gap: var(--spectrum-focus-indicator-gap);
Expand Down

0 comments on commit f322aaa

Please sign in to comment.