material icon indicating copy to clipboard operation
material copied to clipboard

md-select not displaying icons

Open CosticaPuntaru opened this issue 11 years ago • 13 comments

when selecting an option you will expect the select to show the item as is, not the simplified version. for example if you add flags to the option, when you select an option you expect the select to show the icon even when the dropdown is closed.

how it appears:

selection_002

how you expect the select to appear(with the flag):

material-opend

codepen example:

http://codepen.io/anon/pen/eNrZzO

CosticaPuntaru avatar Jul 09 '15 09:07 CosticaPuntaru

@rschmukler - the selected value is currently only a simple string right ? @CosticaPuntaru - here is an improvement idea for your dropdown rows:

<md-option ng-repeat="state in ctrl.states" value="{{state.abbrev}}">
  <div layout="row" style="width:70px;height:30px;margin-left:10px;padding-top:5px;">
    <img width="15px" height="15px" alt="" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACsAAAAwCAMAAAC/knOqAAAAYFBMVEUAAADt7e3n5+eYmJhgYGDX19fi4uITExO/v7/b29smJiZPT0/MzMwcHBx8fHxFRUU2NjaOjo6ysrLPz88MDAy0tLTFxcUuLi6enp5UVFQpKSlmZmZxcXFeXl47OzuGhoas5Ab5AAAA2UlEQVRIie3VXQ+CIBSA4RMGcgBRDmqWH/3/fxnLamQLXVdd+F55tmfTs4kCxBUnrfWkalhL9R01MtTQVedfUK0UQG6b1iOKEHIjuy92IOrh3KI4PGOiXZjnfRznDkY8xHF4e4ope1xkjGVwFAuru6Es5o3LTMqkHU0riZy1RNKjT9qjYGFLbzxHwcKctvOa7DFvsK95t7tNWiTCTdb093NQlw5XrD9H56u0KXtafkAS9iPVxLZLWoCLlTM0roIVe1+0qqp4Ttllu93tr9YxZrfa8I6u/4H/pBvVOQ1Y9SAHgAAAAABJRU5ErkJggg==" />
      <span flex></span>
    {{state.abbrev}}
  </div>
</md-option>

ThomasBurleson avatar Jul 09 '15 12:07 ThomasBurleson

@ThomasBurleson I made one little tweak to your example: including alt="" on the image tag means it will be skipped over by a screen reader since there is already text next to it. Otherwise I'm pretty sure the data-URI would be read aloud.

marcysutton avatar Jul 09 '15 17:07 marcysutton

the idea is that when the select is closed the flag should be visible

CosticaPuntaru avatar Jul 09 '15 18:07 CosticaPuntaru

+1

GustavoCostaW avatar Jul 10 '15 04:07 GustavoCostaW

With the new 0.10.1 release, since this commit clearly says:

BREAKING: md-select-label is no longer uses. The select will now always display the selected value as the text in the md-option. This makes for a better UX for users, as otherwise it was possible to confuse them"

I was really hoping the md-select directive would extract everything from the md-option and use it as display value.

I know the commit message says "display the selected value as the text in the md-option", but it would be an even better UX if the rule was simply : "display the selected value as in the md-option"

If this is not implemented, my team and me won't use md-select and switch to md-menu and reimplement everything...

Even if there is style issues, please let us handle it !

myagoo avatar Jul 20 '15 12:07 myagoo

+1

whoknows avatar Jul 22 '15 12:07 whoknows

@marcysutton: :+1:

ThomasBurleson avatar Jul 22 '15 12:07 ThomasBurleson

:+1:

nicolas-zozol avatar Jul 22 '15 14:07 nicolas-zozol

Any news on this ? 'Cause with this new release, we'll have to switch to a complete rewrite of our own select just to support this feature. As I said above, it could be undocumented and to us to fix hypothetical layout bugs

myagoo avatar Aug 12 '15 14:08 myagoo

:+1:

maelfrize avatar Aug 19 '15 07:08 maelfrize

+1

ptrenery avatar Oct 04 '15 02:10 ptrenery

This will be addressed after the v1.0 release.

ThomasBurleson avatar Oct 04 '15 09:10 ThomasBurleson

This issue is closed as part of our deprecation effort. For details, see our post Spring Cleaning 2016.

ThomasBurleson avatar Apr 28 '16 20:04 ThomasBurleson