Radio button labels should hug text content in radio button groups #6703
Labels
4 - verified
Issues that have been released and confirmed resolved.
ArcGIS Field Apps
Issues logged by ArcGIS Field Apps team members.
bug
Bug reports for broken functionality. Issues should include a reproduction of the bug.
estimate - 2
Small fix or update, may require updates to tests.
has workaround
Issues have a workaround available in the meantime.
impact - p3 - not time sensitive
User set priority impact status of p3 - not time sensitive
p - medium
Issue is non core or affecting less that 60% of people using the library
Milestone
Actual Behavior
By default, the child elements of a
<calcite-radio-button-group>
are stretched to fill the full width of their parent. If the children are labels, this can mean a significant amount of white-space has a hidden behavior of selecting a radio button if the user happens to click in it.Expected Behavior
Only clicking the label's text content should select its assoc. radio button. Alternatively, if it's more usable, all labels are the same width as the widest label.
Reproduction Sample
https://codepen.io/nwhittaker-esri/pen/oNPOVzL
Reproduction Steps
Reproduction Version
1.2.0
Relevant Info
No response
Regression?
No response
Priority impact
p4 - not time sensitive
Impact
Styling the radio-group manually is an easy workaround, but not readily apparent since labels typically have transparent backgrounds.
Similar usability/ergonomic problems as described in #6702.
Esri team
ArcGIS Field Apps
The text was updated successfully, but these errors were encountered: