fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Link buttons don't wrap

Open aneeshack4 opened this issue 8 years ago • 5 comments

Please provide a reproduction of the bug in a codepen:

https://codepen.io/aneeshack4/pen/jerrVm

Bug Report

  • Package version(s): (fill this out)
  • Browser and OS versions: (fill this out if relevant)

Priorities and help requested:

Are you willing to submit a PR to fix? (Yes, No) Yes

Requested priority: (Blocking, High, Normal, Low) Low

Products/sites affected: (if applicable)

Describe the issue:

Links that are buttons don't word wrap - may just have to get rid of using buttons in links; maybe use spans instead.

Actual behavior:

image (button's individual text doesn't wrap the whole button wraps)

Expected behavior:

The button's individual text should wrap.

aneeshack4 avatar Oct 04 '18 21:10 aneeshack4

Do we know why we even offered this option?

Vitalius1 avatar Oct 04 '18 22:10 Vitalius1

@Vitalius1 not sure... I guess the default is buttons if you don't provide a href and we want to support that but it looks like for the wrapping case, that's not possible.

aneeshack4 avatar Oct 04 '18 23:10 aneeshack4

I am almost inclined to just make sure we emphasize this two cases of how the link is rendered and how it might impact the design and not make this breaking change. As an alternative we could just add the as prop pattern to give consumers a choice on either to use <a/> or <button/> or <span/> and than add some logic to support backward compatibility with the current implementation.

Vitalius1 avatar Oct 04 '18 23:10 Vitalius1

Supporting wrapable buttons might be something to look at in #6134

micahgodbolt avatar Dec 28 '18 19:12 micahgodbolt

closing this issue down to reduce duplication

micahgodbolt avatar Dec 28 '18 19:12 micahgodbolt