Skip to content

Conversation

@HerrTopi
Copy link
Contributor

TEST_PLAN: compare with design documentation

INSTUI-4546

@HerrTopi HerrTopi requested review from balzss, Copilot and joyenjoyer May 15, 2025 11:19
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces new AI-themed button color variants (ai-primary and ai-secondary) and updates the associated theme variables, styles, and prop types to support these new variants.

  • Updated README with examples of AI buttons
  • Extended theme definitions and styles for ai-primary and ai-secondary in BaseButton
  • Updated prop types and shared theme variables to include the new color options

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/ui-buttons/src/Button/README.md Added AI button examples to illustrate usage.
packages/ui-buttons/src/BaseButton/theme.ts Added new theme variables for AI button gradients and active state styling.
packages/ui-buttons/src/BaseButton/styles.ts Introduced new style variants for ai-primary and ai-secondary with gradient backgrounds.
packages/ui-buttons/src/BaseButton/props.ts Extended allowed color options to include ai-primary and ai-secondary.
packages/shared-types/src/ComponentThemeVariables.ts Updated type definitions to use string values, and added new AI theme variables.

'ai-secondary': {
default: {
background: `
linear-gradient(to bottom, ${componentTheme.aiBorderTopGradientColor} 0%, ${componentTheme.aiBorderBottomGradientColor} 100%) text,
Copy link

Copilot AI May 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The use of the 'text' keyword in the ai-secondary default background gradient is not self-explanatory; please add a clarifying comment to explain its intended purpose, especially if it is meant to implement a specific text gradient effect.

Copilot uses AI. Check for mistakes.
@github-actions
Copy link

github-actions bot commented May 15, 2025

PR Preview Action v1.6.1
Preview removed because the pull request was closed.
2025-05-16 10:49 UTC

Copy link
Contributor

@joyenjoyer joyenjoyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gj

@HerrTopi HerrTopi merged commit 47868fc into master May 16, 2025
8 checks passed
@HerrTopi HerrTopi deleted the ui-button branch May 16, 2025 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants