You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 6, 2025. It is now read-only.
The button element within the shadow DOM of a vscode-button currently has a max-width of 300px defined.
This means that when a vscode-button has a width of 100% inside a parent container with a width greater than 300px it results in un-centered text/icons.
To reproduce
Add a vscode-button to a div.
Set the vscode-button width to 100% and set the div width to 500px.
Expected behavior
VS Code buttons should have center-aligned text/icons no matter their width.
Current behavior
VS Code buttons will only have centered text/icons up to 300px in width.
Screenshots
With max-width of 300px:
Without max-width:
Desktop (please complete the following information):