Repository navigation
Conversation
Every Azure logo shared hardcoded gradient ids, so in Safari a Select showing Azure in both the trigger and the open list could resolve the trigger's gradients to the list's copy, leaving only the solid piece once the list closed. Use useId() per instance, like Polaris. Fixes ClickHouse#806 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🦋 Changeset detectedLatest commit: 52235e0 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
oranjan
marked this pull request as ready for review
November 28, 2026 14:56
This branch has not been deployed
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.
Description
Selectshows Azure in both the trigger and the open list, the trigger's gradients end up resolving to the list's copy. Once the list closes, 3 of the 4 shapes paint nothing and only the solid#0078D4piece is left.useId()to give each instance its own gradient ids, the same patternPolaris.tsxalready uses.url(#…)fill points at a gradient inside the same svg.Links and tickets
Fixes #806
Good to know
mainand on the commit the issue was filed against (chore: 🤖 add select text+icon storybook story (cloud provider) #801), using the Forms/Select → CloudProvider story in dark theme. Could not reproduce in Chrome 139, 144 or 158, so it looks Safari only. The theme is not the cause; it just happened to be dark in the report.url(#…), and the example indocs/converting-svg-to-react-components.mduses one too. Happy to do a follow-up if you want them all moved touseId().Checklist
Contribution
buildandbuild-storybookwork locallyAccessibility
N/A: only the internal gradient ids changed. The logo's
role="img"andaria-labelare unchanged.Screenshots
Safari, Forms/Select → CloudProvider, dark theme, Azure selected and list closed.
Before:

After:

🤖 Generated with Claude Code
Note
Low Risk
Scoped SVG id fix for one logo with regression tests; no API or accessibility surface changes.
Overview
Fixes a Safari-only rendering bug where the Azure logo lost its gradient fills when multiple copies appeared on one page (e.g. a
Selecttrigger and dropdown both showing Azure). HardcodedlinearGradientids causedurl(#…)references to resolve to another instance's defs.The Azure logo component now uses React
useId()to assign unique gradient ids per mount, matching the existingPolarislogo pattern.Azure.test.tsxasserts instances don't share gradient ids and that every gradient fill references a def inside the same SVG.Includes a patch changeset for
@clickhouse/click-ui.Reviewed by Cursor Bugbot for commit 52235e0. Bugbot is set up for automated code reviews on this repo. Configure here.