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 Nov 6, 2024
1 parent 9e19b84 commit ac9fd79
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 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.
6 changes: 3 additions & 3 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-default: var(--spectrum-avatar-border-color);

--spectrum-avatar-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness);
--spectrum-avatar-focus-indicator-gap: var(--spectrum-focus-indicator-gap);
Expand Down Expand Up @@ -127,7 +127,7 @@ governing permissions and limitations under the License.
border-style: solid;
border-radius: var(--mod-avatar-border-radius, var(--spectrum-avatar-border-radius));
border-width: var(--spectrum-avatar-border-thickness);
border-color: var(--spectrum-avatar-border-color);
border-color: var(--spectrum-avatar-border-color-default);

outline: none;

Expand Down

0 comments on commit ac9fd79

Please sign in to comment.