You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentfeatureLabel used to distinguish feature request from other issues
Reacted by InfectedVoit, Aleksandr Shalugin, Vitaly Moskalik, Bernd Hirschmann, Mark, jagrodal, Jerry Sumpton, Poledouris, matte00, Arlo White and 11 more
Looks like the plunker isn't working. Here's a working one that shows the issue. @arlowhite the vertical alignment is a simple css fix. If you change the md-icon vertical alignment to text-bottom it looks fine.
@willshowell So can md-select-trigger be used to display the selected option's icon (md-icon or img)? I gave it a short try, but could not make it work. Maybe the docs could be extended with an example how to do this.
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentfeatureLabel used to distinguish feature request from other issues
Activity
arlowhite commentedon Mar 31, 2017
EDIT: mis-read the bug. fixing this comment.
Icons do render in the pop-up. However, please fix vertical layout: icon is vertically aligned to the top, not middle.
Confirmed, on selection, the icon value is displayed within the input control instead of the rendered icon.
skoblenick commentedon May 8, 2017
Fix the supplied Plunker: http://plnkr.co/edit/fy1PnCCHnZvmnrrW2Eue?p=preview
atinybeardedman commentedon Jul 27, 2017
Looks like the plunker isn't working. Here's a working one that shows the issue.
@arlowhite the vertical alignment is a simple css fix. If you change the md-icon vertical alignment to text-bottom it looks fine.
https://plnkr.co/edit/M7rT7n?p=preview
sangecz commentedon Aug 25, 2017
how does it look? is there any workaround to remove md-icon text?
willshowell commentedon Aug 25, 2017
@sangecz see #3341 for customizing the trigger value
TimoKunze commentedon Aug 31, 2017
@willshowell So can md-select-trigger be used to display the selected option's icon (md-icon or img)? I gave it a short try, but could not make it work. Maybe the docs could be extended with an example how to do this.
willshowell commentedon Sep 6, 2017
@TimoKunze, my suggestion is more suitable for removing the
md-icontext as @sangecz asked.That said, if you have some flexibility in how you configure it, this works fine as a workaround for the original issue: http://plnkr.co/edit/7eHeaRGvR87N2MMA32xH?p=preview
sangecz commentedon Sep 6, 2017
I used svgIcon on md-icon and MdIconRegistry to avoid showing md-icon text:
template:
<md-icon svgIcon="chat"></md-icon>cmp:
but @willshowell's solution looks suitable.
jelbourn commentedon Jan 17, 2018
I believe this issue is obsolete now that
mat-select-triggerexistsangular-automatic-lock-bot commentedon Sep 8, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.