Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RadioButton] Fix Issue with BorderWidth, Incorrect spacing in Default Control Template. #13407

Merged
merged 8 commits into from
Mar 3, 2023

Conversation

dustin-wojciechowski
Copy link
Contributor

@dustin-wojciechowski dustin-wojciechowski commented Feb 17, 2023

Description of Change

This adapts a previously submitted PR that was closed before it was reviewed: #8292 The underlying Frame was changed to a Border to support BorderWidth attribute not working.

An addition of column spacing to the underlying grid fixes the ellipse being too close to the content text, and additional padding of the grid prevents it from clipping.

Before After
Before After

Question that arose:
According to docs for RadioButton, CornerRadius is set to be an integer: CornerRadius however, Corner Radius use double values: Corner Radius Constructor. Should I change the API to reflect this?

Issues Fixed

Fixes #8291

@github-actions
Copy link
Contributor

Thank you for your pull request. We are auto-formating your source code to follow our code guidelines.

@jsuarezruiz jsuarezruiz added area-controls-radiobutton RadioButton, RadioButtonGroup legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor labels Feb 17, 2023
dustin-wojciechowski and others added 2 commits February 21, 2023 11:59
…rame, as well as test for three additional RadioButton properties.
@github-actions
Copy link
Contributor

Thank you for your pull request. We are auto-formating your source code to follow our code guidelines.

…eated new test for BorderColorProperty, BorderWidthProperty, and CornerRadiusProperty
@dustin-wojciechowski dustin-wojciechowski marked this pull request as ready for review February 28, 2023 04:24
@PureWeen
Copy link
Member

PureWeen commented Mar 3, 2023

@dustin-wojciechowski

According to docs for RadioButton, CornerRadius is set to be an integer: CornerRadius however, Corner Radius use double values: Corner Radius Constructor. Should I change the API to reflect this?

We looked at doing this when we went over to MAUI and determined that it didn't add enough value given that it would be a breaking change.

@PureWeen PureWeen merged commit 3992ae9 into main Mar 3, 2023
@PureWeen PureWeen deleted the dev/add-margin-and-border-width-to-radiobutton branch March 3, 2023 22:00
@github-actions github-actions bot locked and limited conversation to collaborators Dec 13, 2023
@Eilon Eilon removed the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label May 10, 2024
@samhouts samhouts added the fixed-in-8.0.0-preview.3.8149 Look for this fix in 8.0.0-preview.3.8149! label Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-radiobutton RadioButton, RadioButtonGroup fixed-in-8.0.0-preview.3.8149 Look for this fix in 8.0.0-preview.3.8149!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The margin between the mark and content of the radio button is too narrow.
6 participants