fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

There's no way to configure SearchBox to not remove icon when focused

Open yajiex opened this issue 7 years ago • 25 comments

Describe the feature that you would like added

We don't want to remove the search icon when focusing on the search box, however when digging into the code, I find the width of the icon is hard coded to be 4 when focusing and we have no way to configure that.

What component or utility would this be added to

SearchBox

Have you discussed this feature with our team, and if so, who

No

Additional context/screenshots

yajiex avatar Apr 19 '19 05:04 yajiex

@yajiex thanks for submitting this! You can currently do this although it's not ideal. Here's a codpen example as a workaround. I'll look into possibly making it easier to do this.

joschect avatar Apr 19 '19 15:04 joschect

Sorry @joschect but seems the link your provided didn't contain the path...

yajiex avatar Apr 22 '19 00:04 yajiex

@yajiex Sorry about that! this one should work!

joschect avatar Apr 22 '19 04:04 joschect

Thanks @joschect , the workaround looks good to me, looking forward to a better way like exposing a property in the near future!

yajiex avatar Apr 22 '19 08:04 yajiex

My client is demanding this functionality. Instead of implementing this manually, I'd love to see this as an option native to fabric.

invot avatar May 09 '19 18:05 invot

@joschect Thank you for your work, but your example is broken when input something with mouse hover, I record a GIF.

GIF

Please add a prop to support fixed icon or a good solid workaround.

devrsi0n avatar Apr 27 '20 02:04 devrsi0n

@joschect Thank you for your work, but your example is broken when input something with mouse hover, I record a GIF.

GIF

Please add a prop to support fixed icon or a good solid workaround.

A working workaround is to add the nuclear bomb !important to the css width. I know it is hacky but works.

JiahaoShan avatar Jan 28 '21 01:01 JiahaoShan

Is there any update to when will this change be released? This is really important for us and component. We should have some handle to always show icon.

Jimit09 avatar Mar 03 '21 12:03 Jimit09

Hi everyone, sorry for the long time it took before we got back to you. Here is a workaround that also works on mouse hover. We might explore a more robust solution in the future but this should work in the meantime.

khmakoto avatar May 07 '21 02:05 khmakoto

In addition to the styling workaround, I think it would be reasonable to add a prop to handle this case. Given our team's other ongoing work, we're not likely to get to this any time soon, but I'd be happy to review a PR--if anyone would like to help, please comment and we can figure out what the prop ought to be called (and I can provide more detailed implementation guidance if needed).

ecraig12345 avatar May 07 '21 02:05 ecraig12345

:tada:This issue was addressed in #18526, which has now been successfully released as @fluentui/[email protected].:tada:

Handy links:

msft-fluent-ui-bot avatar Jun 22 '21 07:06 msft-fluent-ui-bot

:tada:This issue was addressed in #18526, which has now been successfully released as @fluentui/[email protected].:tada:

Handy links:

msft-fluent-ui-bot avatar Jun 22 '21 07:06 msft-fluent-ui-bot

:tada:This issue was addressed in #18526, which has now been successfully released as @fluentui/[email protected].:tada:

Handy links:

msft-fluent-ui-bot avatar Jun 22 '21 07:06 msft-fluent-ui-bot

:tada:This issue was addressed in #18526, which has now been successfully released as @fluentui/[email protected].:tada:

Handy links:

msft-fluent-ui-bot avatar Jun 22 '21 07:06 msft-fluent-ui-bot

:tada:This issue was addressed in #18526, which has now been successfully released as @fluentui/[email protected].:tada:

Handy links:

msft-fluent-ui-bot avatar Jun 22 '21 07:06 msft-fluent-ui-bot

:tada:This issue was addressed in #18526, which has now been successfully released as @fluentui/[email protected].:tada:

Handy links:

msft-fluent-ui-bot avatar Jun 22 '21 07:06 msft-fluent-ui-bot

:tada:This issue was addressed in #18526, which has now been successfully released as @fluentui/[email protected].:tada:

Handy links:

msft-fluent-ui-bot avatar Jun 22 '21 07:06 msft-fluent-ui-bot

:tada:This issue was addressed in #18526, which has now been successfully released as @fluentui/[email protected].:tada:

Handy links:

msft-fluent-ui-bot avatar Jun 22 '21 07:06 msft-fluent-ui-bot

:tada:This issue was addressed in #18526, which has now been successfully released as @fluentui/[email protected].:tada:

Handy links:

msft-fluent-ui-bot avatar Jun 22 '21 07:06 msft-fluent-ui-bot

:tada:This issue was addressed in #18526, which has now been successfully released as @fluentui/[email protected].:tada:

Handy links:

msft-fluent-ui-bot avatar Jun 22 '21 07:06 msft-fluent-ui-bot