css - Angular Materials won't apply styles to components -


here simple snippet:

.profilebutton  {    float: right;  }
<!-- profile button -->    <div class="col-md-4 profilebuttoncontainer">      <button md-button [routerlink]="'/welcome/profile'" class="profilebutton">profile</button>    </div>

what doing wrong? have been trying style toolbars, dialog boxes, checkboxes angular materials none of them apply. can change styling inspector under mat-(whatever) mat-button, mat-dialog-container, , works, how translate css? seems don't have access modifying mat-(stuff)

all want stick md-button right side of container. super simple.

your code should work expected. see below code,

<div class="profilebuttoncontainer">      <button md-button class="temp-class">click me!</button> </div> 

note : add stylesheet reference @ component level using below line

styleurls:[`....`] 

live demo


Comments

Popular posts from this blog

angular - DownloadURL return null in below code -

meteor - inserting data to database gives error "insert failed: Method '/texts/insert' not found" -