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

PillButtonBar doesn't accept a list of 2 items🐛 #66

Closed
LordOfTheNeverThere opened this issue Sep 1, 2021 · 0 comments
Closed

PillButtonBar doesn't accept a list of 2 items🐛 #66

LordOfTheNeverThere opened this issue Sep 1, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@LordOfTheNeverThere
Copy link

LordOfTheNeverThere commented Sep 1, 2021

Describe the bug
It's not really a bug just a normal mistake. A PillButtonBar will need at least two items otherwise an assertion will be generated. As it states in the image of your code bellow, in the comments.
But in fact you have to put 3 items for it to work

To Reproduce
Steps to reproduce the behavior:

Make a PillButtonBar, have two items on it,
An assertion will fire.

Expected behavior
Allow a 2 items list, as stated in the comments of the code

Screenshots
image
It should be items.lenght>=2 instead of items.lenght>2

Nice Work!
Love the Design! Keep up the Work!

@bdlukaa bdlukaa added the bug Something isn't working label Sep 1, 2021
WinXaito pushed a commit to WinXaito/fluent_ui that referenced this issue Nov 28, 2021
dev-hann added a commit to dev-hann/fluent_ui that referenced this issue Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants