javascript - Missing upward arrow and downward arrow material icons - Stack Overflow

I am using material icons, which I love, BTW. So, I've looked at the ligatures here:and been us

I am using material icons, which I love, BTW. So, I've looked at the ligatures here: / and been using them.

But I have a screen where two of the icons aren't showing up and I can't figure it out. Here is my HTML:

<hello name="{{ name }}"></hello>
<p>
        <button mat-icon-button (click)="onUpClick()">
          <i class="material-icons">arrow upward</i>
        </button>
        <br/>
        <br/>
        <button mat-icon-button (click)="onDownClick()">
          <i class="material-icons">arrow downward</i>
        </button>
        <br/>
        <br/>
        <button mat-icon-button (click)="onClearClick()">
          <i class="material-icons">clear</i>
        </button>
        <br/>
        <br/>
        <button mat-icon-button (click)="onDeleteClick()">
          <i class="material-icons">delete</i>
        </button>
</p>

Clear and delete show up, but the upward and downward arrows don't show up. Here is the stackblitz: ponent.html

I've googled, but can't find issues where some of the icons show up, but not others.

I am using material icons, which I love, BTW. So, I've looked at the ligatures here: https://material.io/icons/ and been using them.

But I have a screen where two of the icons aren't showing up and I can't figure it out. Here is my HTML:

<hello name="{{ name }}"></hello>
<p>
        <button mat-icon-button (click)="onUpClick()">
          <i class="material-icons">arrow upward</i>
        </button>
        <br/>
        <br/>
        <button mat-icon-button (click)="onDownClick()">
          <i class="material-icons">arrow downward</i>
        </button>
        <br/>
        <br/>
        <button mat-icon-button (click)="onClearClick()">
          <i class="material-icons">clear</i>
        </button>
        <br/>
        <br/>
        <button mat-icon-button (click)="onDeleteClick()">
          <i class="material-icons">delete</i>
        </button>
</p>

Clear and delete show up, but the upward and downward arrows don't show up. Here is the stackblitz: https://stackblitz./edit/angular-hntkry?file=app%2Fapp.ponent.html

I've googled, but can't find issues where some of the icons show up, but not others.

Share Improve this question asked Mar 20, 2018 at 10:53 ThomThom 15.1k33 gold badges116 silver badges199 bronze badges 3
  • 1 You need to use arrow_downward and arrow_upward. Check this for more clarification material.io/icons/#ic_arrow_upward – Luke P. Issac Commented Mar 20, 2018 at 11:04
  • @LukeP.Issac Your ment was extremely helpful. I had never clicked on one of the icons before and it was helpful to learn to do that and it would show you the ligature to use. – Thom Commented Mar 23, 2018 at 15:08
  • I was anticipating same so added the url here. :) – Luke P. Issac Commented Mar 24, 2018 at 6:46
Add a ment  | 

3 Answers 3

Reset to default 2

Arrow_upward and arrow_downward are spelled with _ between the words and not a blank space.

Have you linked Material+Icons font family? If no, Please do

<link href="https://fonts.googleapis./icon?family=Material+Icons" rel="stylesheet">

as well as @Mateusz Juruś is right, there should be _ instead of space.

Shouldn't it be <i class="material-icons">keyboard_arrow_down</i> instead of <i class="material-icons">arrow downward</i>

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745385562a4625424.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信