Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AI Optimize sparkles button doesn't have a border in Safari #22062

Open
Jordi-PV opened this issue Feb 20, 2025 · 0 comments
Open

AI Optimize sparkles button doesn't have a border in Safari #22062

Jordi-PV opened this issue Feb 20, 2025 · 0 comments
Labels
changelog: bugfix Needs to be included in the 'Bugfixes' category in the changelog UI change PRs that result in a change in the UI

Comments

@Jordi-PV
Copy link
Contributor

Context: Why was this issue created?

AI Optimize sparkles button doesn't have a border in Safari, making the button look like it is disabled. The reason is that the browser doesn't accept the linear-gradient() color function that we pass to the background-image property.

What is the goal of this issue?

To make the sparkles button for AI Optimize look the same in Safari as in other browsers.

What needs to be done to achieve the goal?

To add CSS rule for Safari where we use different parameters for the background-color property.

Does the issue still need UX or research?

No. UX accepted the suggested solution.

If available: what are the tips for fixing the problem or possible solutions?

In packages/components/src/IconAIFixesButton.js or packages/components/src/AIFixesButton.js add an exception rule for Safari browser with the background-color: rgba( 204, 204, 204, 0.2 ); property and deactivate the current background-image: linear-gradient(to bottom right,#FAF3F7,#EEF2FF) !important; declaration.

See 👀 this thread 🧵 on slack for more context.

What is the expected result/behavior?

That the AI Optimize sparkles button looks the same for Safari as for the other browsers.

Should documentation be added or updated for this change? and if so, where?

@Jordi-PV Jordi-PV added changelog: bugfix Needs to be included in the 'Bugfixes' category in the changelog UI change PRs that result in a change in the UI labels Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: bugfix Needs to be included in the 'Bugfixes' category in the changelog UI change PRs that result in a change in the UI
Projects
None yet
Development

No branches or pull requests

1 participant