Skip to content
Discussion options

You must be logged in to vote

Due to the complex nature of the split button (two buttons wrapped in a span) we have a specific style target for getting CSS onto the container. The style tag you are using, applies styles to the primary button, to target the split button container, use the following:

<DefaultButton
        styles={{ splitButtonContainer: { width: '100%' } }}
        text="Standard"
        split
      />

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Ofer-Gal
Comment options

Answer selected by micahgodbolt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants