Closed
Description
Hi @shawnbot and @emplums, re our discussion in slack on display and links and buttons, I thought I'd put it in an issue...
Use cases we need to account for:
- making a button, or a button that looks like a link, fill the full width of a container
- switching the width of a button/link from mobile to desktop
Proposed api changes:
- give button
width
system props - make sure
<Button is="a" />
works properly - make sure
<Button>
hasdisplay: inline-block;
by default so that the width props work (it does in primer css)
This would mean we can do something like:
<Button width={[1, 1, 1/2, 'auto']} />
Let me know what you think and whether I missed any scenarios we need to account for!
Metadata
Metadata
Assignees
Labels
No labels