Repository navigation
Feat/redesign avatar - #832
Merged
Merged
Conversation
BREAKING CHANGE: Replace tooltip container, arrow and animated props with the new API. Text is required and shape and appearance use new models.
Feat/redesign tooltip
BREAKING CHANGE: Replace AvatarImage/AvatarFallback composition and children with Avatar src, imageProps, fallback, loading, and loader props. The alt prop is now required. Replace size and string shape props with AvatarShape data and avatarShapes.xs/sm/md/lg. Default sizes change from 40/48/56 to 60/80/100/120. Use shape.box.radius for circle/square. Remove asChild; use clickable for a native button. The ref targets that button or a static span. Remove AvatarVariants, AvatarFallbackVariants, ImageProps, and FallbackProps exports.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
TorinAsakura
requested changes
Nov 14, 2026
| ) | ||
| } | ||
| return ( | ||
| <span ref={ref} {...boxProps}> |
Member
There was a problem hiding this comment.
При clickable=false те же props попадают на span. В Chromium статичный Avatar с tabIndex=0 получил фокус по Tab, а при disabled клик всё равно вызвал onClick, несмотря на aria-disabled=true. Раздели props статичного и интерактивного вариантов и проверь переключение clickable с сохранённым обработчиком.
Apply buttonProps only to clickable avatars so static avatars do not receive button handlers or focus attributes. BREAKING CHANGE: Move root DOM event handlers and button/focus attributes into buttonProps. These props apply only when clickable is true. Keep disabled, ref, className, style and shared ARIA attributes on Avatar. The native button type remains button.
TorinAsakura
changed the base branch from
feat/redesign-progress
to
feat/redesign-link
November 17, 2026 18:39
TorinAsakura
approved these changes
Nov 17, 2026
…m-trusted-publishing
build(npm): prepare Hyperion packages for trusted publishing
test(text-transform): verify transformations without a browser
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Таска
Как проверять
Контекст: Storybook → Components → Avatar → Docs
Действие: переключить Shape и Form
Ожидаемый результат: размеры xs/sm/md/lg — 60/80/100/120 px; формы circle и square соответствуют Figma
Контекст: Controls компонента Avatar
Действие: очистить src или указать недоступное изображение, затем вернуть рабочий URL
Ожидаемый результат: отображается fallback; после успешной загрузки его заменяет изображение
Контекст: Controls компонента Avatar
Действие: включить Loading и Disabled
Ожидаемый результат: Loading показывает затемнение и CircleProgress; Disabled применяет соответствующий appearance и блокирует интерактивную кнопку
Контекст: интерактивный Avatar
Действие: навести курсор, перейти к компоненту клавишей Tab, нажать Enter или Space
Ожидаемый результат: отображаются hover, focused и pressed состояния; клавиатура активирует нативную кнопку
Контекст: Controls компонента Avatar
Действие: выключить Clickable
Ожидаемый результат: Avatar становится статичным изображением и не участвует в Tab-навигации
Пруфы
Details
2026-11-13.19.45.32.mov