Skip to content

[01255] Add Badge(string) extension method for Button widget#2892

Merged
nielsbosma merged 1 commit intomainfrom
plan-01255-Ivy-Framework
Mar 31, 2026
Merged

[01255] Add Badge(string) extension method for Button widget#2892
nielsbosma merged 1 commit intomainfrom
plan-01255-Ivy-Framework

Conversation

@nielsbosma
Copy link
Copy Markdown
Contributor

Summary

Changed the Button widget's Badge component from the secondary variant to the outline variant, giving badges a bordered appearance with transparent background instead of a filled secondary color. This was a review-requested styling change. Added unit tests for the Badge extension method.

API Changes

None. The backend Badge property and Badge() extension method remain unchanged.

Files Modified

  • Frontend: src/frontend/src/widgets/button/ButtonWidget.tsx — changed Badge variant from secondary to outline
  • Tests: src/Ivy.Test/ButtonBadgeTests.cs — new test class with 3 tests for Badge property, Badge+ShortcutKey coexistence, and null clearing

Commits

  • b55527d [01255] Use outline variant for button badge and add unit tests

Artifacts

Screenshots

basic-badges

props-with-shortcut

props-all-variants

edge-multiple-variants

Change Badge component variant from secondary to outline for a bordered
appearance with transparent background, as requested in review. Add
ButtonBadgeTests for Badge property and Badge+ShortcutKey coexistence.
@nielsbosma nielsbosma merged commit 4b1b843 into main Mar 31, 2026
10 of 11 checks passed
@nielsbosma nielsbosma deleted the plan-01255-Ivy-Framework branch March 31, 2026 18:58
@artem-ivy-ai
Copy link
Copy Markdown
Collaborator

Deploy timed out

I'm preparing your docs & samples for this PR. I'll update the comment as Sliplane reports progress.

Logs

No terminal state received from Sliplane after 30 minutes.

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.

2 participants