Skip to content

Commit

Permalink
fix(material-experimental/mdc-button): remove unwanted native button …
Browse files Browse the repository at this point in the history
…styles (#24186)
  • Loading branch information
mmalerba committed Jan 12, 2022
1 parent 4eca5c8 commit b0f38b7
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/material-experimental/mdc-list/list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,24 @@
-webkit-line-clamp: 2;
}
}

// MDC doesn't account for button being used as a list item. We override some of
// the default button styles here so that they look right when used as a list
// item.
mat-action-list button {
background: none;
color: inherit;
border: none;
font: inherit;
outline: inherit;
-webkit-tap-highlight-color: transparent;
text-align: left;

[dir='rtl'] & {
text-align: right;
}

&::-moz-focus-inner {
border: 0;
}
}

0 comments on commit b0f38b7

Please sign in to comment.