Calcite-components: RadioGroup - Rounded

Created on 16 Jul 2020  路  34Comments  路  Source: Esri/calcite-components

I propose a rounded property on RadioGroup.

We are going to see an increasing number of cases where a decision point in a workflow will need a radio group, but that moment may not benefit from the horizontal separation that RadioGroup currently delivers.

In this case, the options below the pills change depending on which item is selected.

cc @mitc7862 @bstifle @macandcheese @paulcpederson

1 - assigned design question

Most helpful comment

I think the concern is that those look just like chips, which currently don't have any "selected" state / toggle-ability. You could just use chips and change color / appearance type on selection, but even then I feel like a "chip selection" workflow insinuates a multi-select, not a single-select.

I see what you mean about "horizontal separator", but I don't think the "fit to size of options" one causes any more of an issue than the side-by-side inputs acting in a similar fashion. I think generally there are a lot of UI shapes, sizes, and column widths of elements going on in the workflow, so to that end I agree that the radio group wouldn't do much to help there.

All 34 comments

i wouldn't have them separated like that. they look just like chips tags/filtering

IMO these look like chips, where more than one can be selected - not a single-choice radio group. They also look like the + field comparison buttons (?) above.

but that moment may not benefit from the horizontal separation that RadioGroup currently delivers.

What does this mean exactly?

we already have this square design in the works, we could potentially add a round version i suppose.... though it seems a little too "apple"

image

One of the issues with the radio group in its current form and in this use case is that it behaves as a horizontal separator.

Also, I think it's OK that they look like the other buttons.
Recall that in their default design they also look like out regular buttons.

@asangma

i just think it might be a combo of feature creep on radio groups, as well as a style creep on chips.

can you use normal radio buttons?

Recall that in their default design they also look like out regular buttons.

Yeah, there's an issue to update the radio group to Bryan's example above (sans rounded version) to alleviate that.
https://github.com/Esri/calcite-components/issues/639

The above design can pretty much be achieved with chips, but we don't really have the concept of "selectable" chips (ie a developer would need to handle the interaction amongst the chips), and I suspect most instances of "selectable" chips are usually a multi-select situation.
87724531-7c116200-c770-11ea-902b-d3b6164ce0b3

<calcite-chip appearance="clear">
   First feature
</calcite-chip>
<calcite-chip appearance="clear">
    Unique feature
</calcite-chip>
<calcite-chip appearance="clear" color="blue">
    Aggregate features
</calcite-chip>

Thanks @macandcheese.

@bstifle We totes mcgoats could use regular radio buttons.
The intention here is to convey that those options have significant effects on the results of this workflow.

Just looking for a way to have the weight of the radio-group while not adding another horizontal divider...or one with a weird width or full-width.

As a note, for "First feature" there would be no options below it.

cool, so the examples you just made up there, you could use the Small prop, and the height is around 32px with 14px type. little more petite

@bstifle Wouldn't I still get a radio-group that is either a weird width or full-width and acting as another horizontal separator?

I think the concern is that those look just like chips, which currently don't have any "selected" state / toggle-ability. You could just use chips and change color / appearance type on selection, but even then I feel like a "chip selection" workflow insinuates a multi-select, not a single-select.

I see what you mean about "horizontal separator", but I don't think the "fit to size of options" one causes any more of an issue than the side-by-side inputs acting in a similar fashion. I think generally there are a lot of UI shapes, sizes, and column widths of elements going on in the workflow, so to that end I agree that the radio group wouldn't do much to help there.

i still recommend normal radio buttons if the concern lies with too many lines/separators

there are plenty of input fields in there that add to the lines and such, so i'm not really seeing the argument for not using this fella

image

@bstifle Do you think the UX of a radio button revealing different sets of options makes sense?

it could, but with all these options proposed i still recco this new radio group design
image

sorry for the redundancy haha

i'm not really seeing the argument for not using this fella

I think if when it acts as a kinna header for a section, it works well.
In this case, it is inside a section and messes with the visual hierarchy.

but that's literally what it was designed for 馃槶 changing/revealing content beneath it

i guess you could use Tabs as well

Indeed. I get that.

In the case of "First feature" it'd be a problem.

image

so does "Feature Inclusion" change what populates in "Result Layer Fields"? if so, do you need the line?

Yeah...those are two separate sections.

That's kinna what I'm talking about in regards to the visual hierarchy and radio-group adding a horizontal divider.

So if there's resistance to the rounded approach, I think we need to rework the existing design some.
In the interface, it still looks pretty similar to CalciteButton.

I know there is a 馃憥 on the rounded look, but in an interface, it works.
image

Unrelated.. Could we figure out a way to make a Calcite-stepper work for this workflow (no icon, vertical, and not setting "complete" on any steps would be really close to this)...

@macandcheese #862

Following up on this...the radio group falls apart in panels.
We could use a pattern that perhaps allows the items to wrap.

Screen Shot 2020-10-01 at 4 14 43 PM

We ended up with something more like
image

Wraps like this...not amazing, but works.
image

Can something like this work? also suggest using Small instead of Medium

image

There's also vertical layout mode, a bit extra line height... But, yes generally panels seem very narrow to accommodate more than two things in horizontal lockups, so scale "s" would certainly help as well.

Right yeah, vert:

image

A slightly wider panel option might help a lot of these UI breathe a bit more too? I know there was talk of a "really wide" version but maybe an "m" between this and that?

re: panel width
Panel widths will be highly dynamic, and our designs and components will need to handle narrow panels. Also, consider what happens if there's more than three options...or when we're localizing to German or Latvian.

re: scale
scale="s" is the first thing we tried, but it's still brittle. We will still run into the width problem when there are more options, when an option has a slightly longer string, or when localizing.

re: wrapping
@bstifle

Can something like this work?

image

We tried that. And it's a quick technical fix. Would we want to do that? Like would we do that in a mobile interface?

re: Vertical
Seems like we're losing the intent of the design in this case. It also starts to look like a stack of buttons too similar to a Done & Cancel pattern. Not sure how well it works in the panel.

image

I think we need more UI options with radio-group.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Closing in favor of a different approach.

Was this page helpful?
0 / 5 - 0 ratings