Skip to content

bug: AppAvatar SVGs don't display correctly when rendered multiple times in the document #652

@kurtdoherty

Description

@kurtdoherty

Describe the bug

The SVGs used for the App Switcher's AppAvatar component rely on IDs for some of their gradients. Becuase our docs page displays the same AppAvatar components multiple times, later instances of the SVG fail to render correctly.

Previously, this was not an issue because the DeprecatedMenu.Popover originally used did not render its children when it was not open. Now that we're using the new Menu component, the SVGs are rendered even though they're not visible.

To Reproduce
Go to the AppSwitcher docs and open the menu in the Example story (not the top-most, playground story).

Expected behaviour
SVGs would display correctly in the documentation at all times regardless of how many times they are rendered within the same document.

Screenshots

Image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions