DefaultButton with menuProps does not obey style={{width: '100%'}} #24231
-
I want to steratch the split button to take all the containing width on a web part but it keeps the width based on the text of it. Thank you |
Beta Was this translation helpful? Give feedback.
Answered by
micahgodbolt
Aug 26, 2022
Replies: 1 comment 1 reply
-
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
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
micahgodbolt
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: