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(dialog): BREAKING CHANGE now md-dialog-actions
- Loading branch information
1 parent
9693204
commit bf08e17
Showing
6 changed files
with
150 additions
and
90 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,44 @@ | ||
<md-dialog aria-label="Mango (Fruit)" ng-cloak> | ||
<form> | ||
<md-toolbar> | ||
<div class="md-toolbar-tools"> | ||
<h2>Mango (Fruit)</h2> | ||
<span flex></span> | ||
<md-button class="md-icon-button" ng-click="cancel()"> | ||
<md-icon md-svg-src="img/icons/ic_close_24px.svg" aria-label="Close dialog"></md-icon> | ||
</md-button> | ||
</div> | ||
</md-toolbar> | ||
<md-dialog-content style="max-width:800px;max-height:810px; "> | ||
<div class="md-dialog-content"> | ||
<h2>Using .md-dialog-content class that sets the padding as the spec</h2> | ||
<p> | ||
The mango is a juicy stone fruit belonging to the genus Mangifera, consisting of numerous tropical fruiting trees, cultivated mostly for edible fruit. The majority of these species are found in nature as wild mangoes. They all belong to the flowering plant family Anacardiaceae. The mango is native to South and Southeast Asia, from where it has been distributed worldwide to become one of the most cultivated fruits in the tropics. | ||
</p> | ||
<md-toolbar> | ||
<div class="md-toolbar-tools"> | ||
<h2>Mango (Fruit)</h2> | ||
<span flex></span> | ||
<md-button class="md-icon-button" ng-click="cancel()"> | ||
<md-icon md-svg-src="img/icons/ic_close_24px.svg" aria-label="Close dialog"></md-icon> | ||
</md-button> | ||
</div> | ||
</md-toolbar> | ||
|
||
<img style="margin: auto; max-width: 100%;" alt="Lush mango tree" src="img/mangues.jpg"> | ||
<md-dialog-content style="max-width:800px;max-height:810px; "> | ||
<div class="md-dialog-content"> | ||
<h2>Using .md-dialog-content class that sets the padding as the spec</h2> | ||
<p> | ||
The mango is a juicy stone fruit belonging to the genus Mangifera, consisting of numerous tropical fruiting trees, cultivated mostly for edible fruit. The majority of these species are found in nature as wild mangoes. They all belong to the flowering plant family Anacardiaceae. The mango is native to South and Southeast Asia, from where it has been distributed worldwide to become one of the most cultivated fruits in the tropics. | ||
</p> | ||
|
||
<p> | ||
The highest concentration of Mangifera genus is in the western part of Malesia (Sumatra, Java and Borneo) and in Burma and India. While other Mangifera species (e.g. horse mango, M. foetida) are also grown on a more localized basis, Mangifera indica—the "common mango" or "Indian mango"—is the only mango tree commonly cultivated in many tropical and subtropical regions. | ||
</p> | ||
<p> | ||
It originated in Indian subcontinent (present day India and Pakistan) and Burma. It is the national fruit of India, Pakistan, and the Philippines, and the national tree of Bangladesh. In several cultures, its fruit and leaves are ritually used as floral decorations at weddings, public celebrations, and religious ceremonies. | ||
</p> | ||
</div> | ||
</md-dialog-content> | ||
<img style="margin: auto; max-width: 100%;" alt="Lush mango tree" src="img/mangues.jpg"> | ||
|
||
<div class="md-actions" layout="row"> | ||
<md-button href="http://en.wikipedia.org/wiki/Mango" target="_blank" md-autofocus> | ||
More on Wikipedia | ||
</md-button> | ||
<span flex></span> | ||
<md-button ng-click="answer('not useful')" > | ||
Not Useful | ||
</md-button> | ||
<md-button ng-click="answer('useful')" style="margin-right:20px;" > | ||
Useful | ||
</md-button> | ||
</div> | ||
<p> | ||
The highest concentration of Mangifera genus is in the western part of Malesia (Sumatra, Java and Borneo) and in Burma and India. While other Mangifera species (e.g. horse mango, M. foetida) are also grown on a more localized basis, Mangifera indica—the "common mango" or "Indian mango"—is the only mango tree commonly cultivated in many tropical and subtropical regions. | ||
</p> | ||
<p> | ||
It originated in Indian subcontinent (present day India and Pakistan) and Burma. It is the national fruit of India, Pakistan, and the Philippines, and the national tree of Bangladesh. In several cultures, its fruit and leaves are ritually used as floral decorations at weddings, public celebrations, and religious ceremonies. | ||
</p> | ||
</div> | ||
</md-dialog-content> | ||
|
||
<md-dialog-actions layout="row"> | ||
<md-button href="http://en.wikipedia.org/wiki/Mango" target="_blank" md-autofocus> | ||
More on Wikipedia | ||
</md-button> | ||
<span flex></span> | ||
<md-button ng-click="answer('not useful')"> | ||
Not Useful | ||
</md-button> | ||
<md-button ng-click="answer('useful')" style="margin-right:20px;"> | ||
Useful | ||
</md-button> | ||
</md-dialog-actions> | ||
</form> | ||
</md-dialog> |
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
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