angular-material-sidemenu icon indicating copy to clipboard operation
angular-material-sidemenu copied to clipboard

Fix md-sidemenu-button with md-icon aligned to right with angular.js 1.6.x

Open chenlijun99 opened this issue 6 years ago • 0 comments

When testing md-sidemenu-button with angular.js 1.6.x, if a md-icon is present, the content of the button is aligned to right.

It's a issue related to angular-material setting margin for md-icon to auto. But only with angular.js from 1.6.0, the md-icon starts to take all the remaining space of the button, thus causing the content to be squashed to the right side.

It's kinda strange since angular.js shouldn't affect css.

Setting the margin-left of md-icon to 0 seems to fix the issue.

chenlijun99 avatar Mar 04 '18 16:03 chenlijun99