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
{{ message }}
Repository navigation
extra 'span' element added in mat-option of autocomplete makes impossible to style the internals #8561
changed the title [-]span in mat-option of autocomplete makes impossible to style the internals[/-][+]extra 'span' element added in mat-option of autocomplete makes impossible to style the internals[/+]on Nov 20, 2017
That span is there to collapse some whitespace, as well as truncate long labels (once #7857 gets in). Note that the text isn't the only content that can be put inside an option, there's also a checkbox that will be shown if the select is in multiple mode.
Activity
[-]span in mat-option of autocomplete makes impossible to style the internals[/-][+]extra 'span' element added in mat-option of autocomplete makes impossible to style the internals[/+]crisbeto commentedon Nov 20, 2017
That span is there to collapse some whitespace, as well as truncate long labels (once #7857 gets in). Note that the text isn't the only content that can be put inside an option, there's also a checkbox that will be shown if the select is in
multiplemode.jelbourn commentedon Nov 20, 2017
Closing as "working as intended". You can always target descendants with css
k-krupka commentedon Nov 21, 2017
yep, understood.
cheers guys!
prashantpimpale93 commentedon Jul 4, 2019
@jelbourn I need the option text to appear to the next line after the text overflow from the min-width.
What I did:
But not working!
Can you suggest something?
angular-automatic-lock-bot commentedon Sep 11, 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.