Skip to content

Make label optional for checkbox widget#2873

Merged
hecrj merged 1 commit intoiced-rs:masterfrom
Krahos:optional-label
Nov 25, 2025
Merged

Make label optional for checkbox widget#2873
hecrj merged 1 commit intoiced-rs:masterfrom
Krahos:optional-label

Conversation

@Krahos
Copy link
Contributor

@Krahos Krahos commented Apr 3, 2025

As discussed here, in this PR I made the label for CheckBox optional. I also removed it as parameter from the checkbox helper function and added a way to add the label with a builder pattern instead.

The documentation and examples are updated accordingly.

closes #2984

@hecrj hecrj force-pushed the optional-label branch 2 times, most recently from 99fdf41 to d2f53f1 Compare November 25, 2025 07:57
@hecrj hecrj added this to the 0.14 milestone Nov 25, 2025
@hecrj hecrj added feature New feature or request widget addition labels Nov 25, 2025
Copy link
Member

@hecrj hecrj left a comment

Choose a reason for hiding this comment

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

Thanks!

@hecrj hecrj changed the title refactor(checkbox): make label optional for checkbox Make label optional for checkbox widget Nov 25, 2025
@hecrj hecrj merged commit 7e8cf76 into iced-rs:master Nov 25, 2025
15 checks passed
@Krahos Krahos deleted the optional-label branch November 25, 2025 08:36
pml68 added a commit to pml68/iced that referenced this pull request Nov 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

addition feature New feature or request widget

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Checkbox has spacing applied even when no label is present

2 participants

Comments