This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(button): fixes button styles for components that override their d…
…efault styles
- Loading branch information
1 parent
3e7ff23
commit b1046bc
Showing
2 changed files
with
2 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b1046bc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@robertmesserle - this is still causing me issues with md-list components. In 0.10.0 the you could use md-list-item with children and layout in a simple table style. This no longer works when there is an ng-click on the md-list-item...
b1046bc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hodeyp - Please provide a CodePen that demonstrates this issue.
b1046bc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can confirm this, the
display: inline-flex
from.md-button
needs to be overridden here as well.b1046bc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before something like this was possible: http://plnkr.co/edit/UIe8PStjDZ8pHsK3Z1Zm?p=preview
Comment the style and you have the current situation.
b1046bc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also used to have some buttons with
md-icon
and text in them. They used to be aligned in a row, now they are in a column. Not sure if that is a use-case you (or the material-design-guide) want to support, but I think its a pretty common one.Edit: added this to the plunkr as well.
b1046bc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
http://plnkr.co/edit/vZfbOv?p=preview
I don't seem to be getting any text on the list items with an ng-click at all now
b1046bc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Current master branch still causes issues with menu item buttons.
The menu button text is centered and not left-aligned due to the new styles.
See Menu Position Mode Demos to see how it looks.
https://material.angularjs.org/HEAD/#/demo/material.components.menu
b1046bc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, this causes problems with list buttons in bottom sheet. icon and buttons are vertically laid out instead of horizontal.
Due to the way flex column is used to style the buttons, this is causing the layout issues. Since it's meant to fix the link vs button consistency and based on the fixes presented here, it's assumed that any component that includes buttons should have the css fixed.
However, this presents the issue that a standalone button is not longer laid out horizontally. So for example:
The above button, instead of aligning the icon to the left of the button text, will end up with icon on top of the button text. Both vertical and horizontal alignments should be supported.
b1046bc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍, please fix this issue