fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Button: width of icon button is not set correctly in Safari

Open MirandaGe opened this issue 9 years ago • 4 comments

Bug Report

  • Package version(s): all
  • Browser and OS versions: Safari

Describe the issue:

The width of icon button (80px) is larger than the expected size(32px). The reason is min-width: auto is not supported in Safari.

Actual behavior:

screen shot 2017-01-12 at 4 43 39 pm

Expected behavior:

set min-width: 32px for icon button.

If applicable, please provide a codepen repro:

check the width of Icon Button in http://dev.office.com/fabric#/components/button under Safari

MirandaGe avatar Jan 12 '17 11:01 MirandaGe

Thanks for the bug report, @MirandaGe. I'll get this fixed.

mikewheaton avatar Jan 12 '17 17:01 mikewheaton

Which version of Safari are you using? I've tested on 10.0.2 (12602.3.12.0.1) and min-width: auto; is working as expected:

image

image

mikewheaton avatar Jan 12 '17 17:01 mikewheaton

Thank you Mike! I use a Version of 9.1.2(11601.7.7)

MirandaGe avatar Jan 13 '17 01:01 MirandaGe

Fixed and merged.

In this case it was an easy fix, but for future reference we only support the two latest major versions of browsers, as determined by CanIUse. For Safari that's versions 10.2 and 9.3.

mikewheaton avatar Jan 20 '17 17:01 mikewheaton