whats the correct way of inserting label in an Ionic FAB list

后端 未结 6 722
谎友^
谎友^ 2020-12-08 10:56

i want to insert a label so that matches every FAB icon on the Fab list whats the correct way of doing it. the way i did it it doesn\'t work

6条回答
  •  一整个雨季
    2020-12-08 11:30

    The chosen answer seemed to work most of the time, but in some iOS devices it was not picking up the contain: layout; setting, making the label not align. I didn't need my label as part of the clickable button, so my FAB label addition is below which works on iOS. Fairly simple.

    HTML

    
        
        Scan
    
    

    CSS

    ion-fab ion-label {
        font-weight: bold;
        color: color($colors, primary, base);
        text-align: center;
        margin: 0px !important;
    }
    

提交回复
热议问题