Skip to content

Commit

Permalink
fix(avatar): remove margin-block-end for plain variant mobile viewp…
Browse files Browse the repository at this point in the history
…orts (#2150)

fix(avatar): remove margin for mobile viewports and `plain` variant
  • Loading branch information
zeroedin authored Feb 9, 2025
1 parent d1182b0 commit 7ab9dc5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/warm-forks-switch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rhds/elements": patch
---

`<rh-avatar>`: corrected small viewport margin for `plain` variant avatars
2 changes: 1 addition & 1 deletion elements/rh-avatar/rh-avatar.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
}

:host([layout='block']) :is(img, canvas, svg),
#container.mobile :is(img, canvas, svg) {
:host(:not([plain])) #container.mobile :is(img, canvas, svg) {
margin-block-end: var(--rh-space-lg, 16px);
}

Expand Down

0 comments on commit 7ab9dc5

Please sign in to comment.