Skip to content

fix(many): fix access of colors from theme#1993

Merged
HerrTopi merged 1 commit intomasterfrom
fix-heading-theming
May 29, 2025
Merged

fix(many): fix access of colors from theme#1993
HerrTopi merged 1 commit intomasterfrom
fix-heading-theming

Conversation

@HerrTopi
Copy link
Contributor

INSTUI-4561

@HerrTopi HerrTopi requested review from ToMESSKa, balzss and Copilot May 29, 2025 10:54
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 fixes the access of colors from the theme by adding additional optional chaining to prevent potential runtime errors when theme properties are missing.

  • Updated SideNavBarItem theme to safely access contrast colors.
  • Updated RadioInputGroup, Heading, and Avatar themes to consistently use optional chaining.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
packages/ui-side-nav-bar/src/SideNavBar/SideNavBarItem/theme.ts Ensure safe access to contrast colors for focus outlines.
packages/ui-radio-input/src/RadioInputGroup/theme.ts Use optional chaining for invalid asterisk color access.
packages/ui-heading/src/Heading/theme.ts Safely access gradient colors via optional chaining.
packages/ui-avatar/src/Avatar/theme.ts Consistently use optional chaining for color property access.

@github-actions
Copy link

github-actions bot commented May 29, 2025

PR Preview Action v1.6.1
Preview removed because the pull request was closed.
2025-05-29 13:41 UTC

@HerrTopi HerrTopi self-assigned this May 29, 2025
@HerrTopi HerrTopi requested a review from joyenjoyer May 29, 2025 13:17
@HerrTopi HerrTopi merged commit 983e580 into master May 29, 2025
12 checks passed
@HerrTopi HerrTopi deleted the fix-heading-theming branch May 29, 2025 13:40
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.

3 participants

Comments