-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Input: contentBefore
and contentAfter
don't work with bundleIcons
#26057
Comments
I don't see a value for An icon being It is correct for consumers of |
@ling1726 , thanks for clarifying, I didn't know that. But still, switching between However, doing so brings inconsistency between the actual behavior of the wrapper component and its expected semantic (User expects one element out of it but it actually yields two) |
@nandin-borjigin, implementing this with javascript isn't a great idea since you would need to use event handlers like |
Repro: https://codesandbox.io/s/mystifying-austin-02jpd4?file=/example.tsx
The specificity of the content styles in
Input
are more specific than the styles applied in bundled icons, the result is that both filled and regular icons are always visiblefluentui/packages/react-components/react-input/src/components/Input/useInputStyles.ts
Lines 215 to 235 in 66bf89f
The text was updated successfully, but these errors were encountered: