Skip to content

💄 Allow passing icon props to IconButton#1288

Merged
arkadiy93 merged 1 commit into
mainfrom
feat/addIconProps
May 27, 2026
Merged

💄 Allow passing icon props to IconButton#1288
arkadiy93 merged 1 commit into
mainfrom
feat/addIconProps

Conversation

@arkadiy93
Copy link
Copy Markdown
Contributor

@arkadiy93 arkadiy93 commented May 27, 2026

  • This pull request introduces a minor feature enhancement to the IconButton component, allowing consumers to pass additional props to the underlying Icon via a new iconProps prop. This increases flexibility for customizing the icon's appearance or behavior.

Copilot AI review requested due to automatic review settings May 27, 2026 13:50
Copy link
Copy Markdown
Contributor

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

Updates IconButton to support forwarding selected props to the underlying EDS Icon, enabling customization (e.g., size, title, color) without changing the IconButton API surface significantly.

Changes:

  • Added an iconProps prop to IconButton (typed as Omit<IconProps, 'data'>) and spread it onto the rendered <Icon />.
  • Bumped package version from 13.1.1 to 13.1.2.

Reviewed changes

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

File Description
src/molecules/Button/IconButton/IconButton.tsx Adds iconProps passthrough to customize the internal EDS Icon.
package.json Version bump for the release containing the new optional prop.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/molecules/Button/IconButton/IconButton.tsx
@arkadiy93 arkadiy93 requested a review from aslakihle May 27, 2026 13:57
@arkadiy93 arkadiy93 marked this pull request as ready for review May 27, 2026 13:57
@arkadiy93 arkadiy93 requested a review from a team as a code owner May 27, 2026 13:57
@github-actions
Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 100% (🎯 100%) 17400 / 17400
🔵 Statements 100% (🎯 100%) 17400 / 17400
🔵 Functions 100% (🎯 100%) 1278 / 1278
🔵 Branches 100% (🎯 100%) 4447 / 4447
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/molecules/Button/IconButton/IconButton.tsx 100% 100% 100% 100%
Generated in workflow #2317 for commit d195be9 by the Vitest Coverage Report Action

Copy link
Copy Markdown
Contributor

@aslakihle aslakihle left a comment

Choose a reason for hiding this comment

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

😎

@arkadiy93 arkadiy93 merged commit fecf0f2 into main May 27, 2026
11 of 12 checks passed
@arkadiy93 arkadiy93 deleted the feat/addIconProps branch May 27, 2026 14:01
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