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

Add segment component #2477

Closed
bheston opened this issue Dec 4, 2019 · 7 comments
Closed

Add segment component #2477

bheston opened this issue Dec 4, 2019 · 7 comments
Labels
area:fast-foundation Pertains to fast-foundation feature A new feature warning:stale No recent activity within a reasonable amount of time

Comments

@bheston
Copy link
Collaborator

bheston commented Dec 4, 2019

Need to add a segment control used like a condensed set of radio buttons for selecting a value from a non-binary list. For example:
image

The input and output behavior is comparable to a radio button. Perhaps that interface best supports this component.

Visually the selection indicator must be able to animate to the target position, similar to the indicator on the Pivot component.

From a design system perspective, the overall component follows the standard height guidance. The internal button follows the normal button horizontal spacing. All options are the same width: The longest title with appropriate padding. Note that the inset means the internal button will be shorter than a normal button. The selected item used the toggle fill, otherwise it follows the outline pattern for the container and the stealth pattern for non-selected options.

@bheston bheston added the improvement A non-feature-adding improvement label Dec 4, 2019
@chrisdholt
Copy link
Member

Visually the selection indicator must be able to animate to the target position, similar to the indicator on the Pivot component.

Is there an example of the selected indicator? I'm assuming that the dark gray over "inspirational" is not what's being referred to - I'm not sure how you would animate that to "focused" as selected.

@bheston
Copy link
Collaborator Author

bheston commented Feb 13, 2020

Is there an example of the selected indicator?

Yeah, it refers to the dark grey plate for Inspirational. The width of all options is the same, so the idea (without making a quick prototype) is that the backplate animates across exactly like the pill in pivot, while the text fades between the two selected / unselected colors for the two options. It would be a fairly quick transition, so I think it would be safe to leave any options in the middle, lie Information in this case would not change when going end to end.

@stale
Copy link

stale bot commented Jul 18, 2020

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.

@stale stale bot added the reason : stale label Jul 18, 2020
@EisenbergEffect EisenbergEffect added area:fast-components area:fast-foundation Pertains to fast-foundation feature A new feature and removed reason : stale improvement A non-feature-adding improvement labels Jul 20, 2020
@chrisdholt
Copy link
Member

@bheston From an interaction model standpoint, it seems like this is covered by radio/radiogroup. From the date, my assumption is that this was requested for the MSFT package. If that's still desired, this may be best created as a new request in the Fluent UI repo: https://github.com/microsoft/fluentui/issues/

As it stands now, it seems like you could accommodate this with the existing radio/radiogroup foundation controls + custom styling.

@bheston
Copy link
Collaborator Author

bheston commented Oct 29, 2020

This was initially considered for the msft package, though I believe it's useful enough and contains enough complexity that it is beneficial to have as at least a preconfigured variant to a radio group. I think you're right that the interaction model is the same. I think it's worth having on the backlog at least.

@stale
Copy link

stale bot commented Apr 16, 2022

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.

@stale stale bot added the warning:stale No recent activity within a reasonable amount of time label Apr 16, 2022
@janechu
Copy link
Collaborator

janechu commented May 28, 2024

Removing this per #6955.

@janechu janechu closed this as completed May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:fast-foundation Pertains to fast-foundation feature A new feature warning:stale No recent activity within a reasonable amount of time
Projects
None yet
Development

No branches or pull requests

4 participants