-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Autocomplete: Adornments are styled as Icon Buttons #8878
Comments
This comment was marked as outdated.
This comment was marked as outdated.
@ScarletKuro @henon This was introduced by #8787 and it was due to
MudBlazor/src/MudBlazor/Components/Autocomplete/MudAutocomplete.razor.cs Lines 898 to 903 in 122a95f
This is rendered differently in MudInputAdornment: MudBlazor/src/MudBlazor/Components/Input/MudInputAdornment.razor Lines 12 to 19 in 122a95f
and this was already the case for Text Fields in the docs and likely most other adornments. ✋I propose we make it always be a clickable MudIcon instead of a MudIconButton because it looks much cleaner. To see the difference yourself, look at the docs search bar in dev.mudblazor.com vs mudblazor.com. Then take a look at other adornments throughout the docs like in the MudTextField. |
The reason for the button is evident, someone wanted a clickable element to hover. |
@henon The regular icon is hoverable in the way that the cursor changes without having a huge ring around it. The padding should at least be reduced. Why was the docs search bar using one without the padded hover? |
Interesting, I didn't know MudIcon was able to hover |
This is intended behavior. The fact that icon adornment buttons have too much padding is a separate issue which is a little convoluted to change due to the way the styles are written. |
Bug type
Component
Component name
MudAutocomplete
What happened?
The DOM and the styling of adornments have changed in the autocomplete and maybe other components too.
Docs search bar (v6.19.1):
Regular:
There is an appropriate amount of margin between the adornment and the text.
Adornment hover:
There is no hover effect.
Docs search bar (dev @ 0f37ec5):
Regular:
Too much margin between the adornment and the icon, and the icon is not as vibrant.
Adornment hover:
Icon button hover effect
Expected behavior
The adornment should not take up so much space nor should it have a large hover effect.
Reproduction link
https://dev.mudblazor.com/components/autocomplete
Reproduction steps
Relevant log output
No response
Version (bug)
7.0.0-preview1
Version (working)
6.19.1
What browsers are you seeing the problem on?
Edge
On which operating systems are you experiencing the issue?
Windows
Pull Request
Code of Conduct
The text was updated successfully, but these errors were encountered: