The CdxButton component currently has an explicit max-width of 448px via the @size-width-button component-level token. This token has a comment:
Note, that this is a slight amendment from WikimediaUI Base from 28.75em = 460px to 448px
The max-width can cause issues at smaller viewport widths or when a button exists in a narrow container. We could solve this by updating the max-width to @size-full.
For historical context: the OOUI ButtonWidget has no max-width.
In addition, the text within the buttons is cut off when it exceeds the available space, making it impossible to read either the left or right side. We can resolve this issue by wrapping the text in the buttons by default, ensuring that all the text remains visible.
Acceptance criteria
- Discuss the current max-width and text behavior and decide on best solution
- Update Buttons in code: max-width: @size-full and text wrapping
- Update the Figma library accordingly
- Test wrapping






