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

feat: add label style to segmented buttons #3926

Merged
merged 3 commits into from
Jun 28, 2023
Merged

Conversation

rKatex
Copy link
Contributor

@rKatex rKatex commented Jun 12, 2023

Summary

Currently there is no way to change the style of the label of a SegmentedButton. This PR introduces the ability to give each element of the buttons-list an individual style.

{
    value: 'test',
    label: 'Test',
    style: {
        // Some wrapper style
    },
    labelStyle: {
        fontSize: 5,
    },
}

Test plan

Like in the example above, just apply some label style to a specific SegementedButton item.

@callstack-bot
Copy link

callstack-bot commented Jun 12, 2023

Hey @rKatex, thank you for your pull request 🤗. The documentation from this branch can be viewed here.

@lukewalczak lukewalczak added this to the 5.9.0 milestone Jun 27, 2023
@lukewalczak lukewalczak merged commit 56f193c into callstack:main Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants