-
Notifications
You must be signed in to change notification settings - Fork 954
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
All Buttons inside ButtonGroup have same status #724
Comments
Hi @28harishkumar 👋 import React from 'react';
import { ButtonGroup, Button } from 'react-native-ui-kitten';
const SameStatusButtonGroup = () => (
<ButtonGroup status='success'>
<Button>A</Button>
<Button>B</Button>
<Button>C</Button>
</ButtonGroup>
);
const SameAppearanceButtonGroup = () => (
<ButtonGroup appearance='outline'>
<Button>A</Button>
<Button>B</Button>
<Button>C</Button>
</ButtonGroup>
); |
Hi @artyorsh I typed
|
@28harishkumar can you share a bit more information about the use-case? Such changes need discussion with our design team |
Currently I am not able to give inline Action Buttons with different colors. Another use case is providing Although all use cases can be covered by replacing ButtonGroup with View and writing extra style. But it will be better if ButtonGroup does not restrict individual Button property. Additionally I found one more issue.
|
@28harishkumar we don't think
Thanks for reporting 👍 We've already got fix for this. Will be available in next release |
@artyorsh hey, I came up with a similar case; what I'm trying to do is like the old pagination from bootstrap Snack has that feature for selecting the platform too: My first attemp was to set up a Thanks! |
@artyorsh this would be a great element to include in a future release. |
You can also achieve this by changing the button style instead of the status, for example: <ButtonGroup status="basic" appearance="outline" >
<Button
textStyle={ selected ? { color: "white" } : null }
style={ selected ? styles.buttonSelected : null }>
L
</Button>
<Button>M</Button>
<Button>R</Button>
</ButtonGroup> Also, I realised that using Example, using Dark Mode, the border of the <ButtonGroup status="basic" appearance="outline" >
<Button>L</Button>
<Button>M</Button>
<Button>R</Button>
</ButtonGroup> |
Issue type
I'm submitting a ... (check one with "x")
Issue description
Current behavior:
Button elements in ButtonGroup have same status
Expected behavior:
Each Button should have its own status
Steps to reproduce:
Related code:
Other information:
OS, device, package version
The text was updated successfully, but these errors were encountered: