Skip to content

Conversation

lchans
Copy link
Collaborator

@lchans lchans commented May 27, 2025

External Links

Description

  1. Fixes the styling of the "primary" field
  2. In Relational Migrator, the"primary" color (blue) is only applied if it is a primary key

📸 Screenshots/Screencasts

Screenshot 2025-05-27 at 10 12 14 AM

@lchans lchans marked this pull request as ready for review May 27, 2025 00:48
Copy link
Collaborator

@adrianhhong adrianhhong left a comment

Choose a reason for hiding this comment

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

Im not sure I understand this change. So "keys" will always be blue?

} else if (variant === 'primary' && glyph === 'key') {
return palette.blue.base;
} else {
return glyph === 'key' ? getAccent() : internalTheme.node.icon;
Copy link
Collaborator

Choose a reason for hiding this comment

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

This line also has a check if the glyph is 'key'.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If the user sets the variant as "primary" then only the key (And no other glyphs) will be blue. If there is no variant, the key defaults back to the accent color (Green for MongoDB, purple for Relational)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah sorry I missed that, sleepy day for me

@lchans lchans force-pushed the bugfix/MIG-6838-fix-styling-of-primary-field branch from 426b3dc to 67de2c2 Compare May 28, 2025 01:30
@adrianhhong adrianhhong self-requested a review May 28, 2025 03:12
@lchans lchans merged commit aa78b51 into main May 28, 2025
1 check passed
@lchans lchans deleted the bugfix/MIG-6838-fix-styling-of-primary-field branch May 28, 2025 04:11
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