Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(card): add button functionality (#17997)
closes #17773
- Loading branch information
1 parent
ef98977
commit 669ec0d
Showing
9 changed files
with
266 additions
and
9 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
<!DOCTYPE html> | ||
<html dir="ltr"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Card - Basic</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"> | ||
<link href="../../../../../css/ionic.bundle.css" rel="stylesheet"> | ||
<link href="../../../../../scripts/testing/styles.css" rel="stylesheet"> | ||
<script src="../../../../../scripts/testing/scripts.js"></script> | ||
<script src="../../../../../dist/ionic.js"></script> | ||
</head> | ||
|
||
<body> | ||
<ion-app> | ||
|
||
<ion-header> | ||
<ion-toolbar> | ||
<ion-title>Card - Button</ion-title> | ||
</ion-toolbar> | ||
</ion-header> | ||
|
||
<ion-content id="content"> | ||
|
||
<ion-card button> | ||
<ion-card-header> | ||
<ion-card-subtitle> | ||
Subtitle | ||
</ion-card-subtitle> | ||
<ion-card-title> | ||
Button Card | ||
</ion-card-title> | ||
</ion-card-header> | ||
|
||
<ion-card-content> | ||
This is content, inside of a card with a button attribute. | ||
</ion-card-content> | ||
</ion-card> | ||
|
||
<ion-card href="#"> | ||
<ion-card-header> | ||
<ion-card-title> | ||
Anchor Card | ||
</ion-card-title> | ||
</ion-card-header> | ||
|
||
<ion-card-content> | ||
This is content, inside of a card with a href attribute. | ||
</ion-card-content> | ||
</ion-card> | ||
|
||
<ion-card button> | ||
<div style="position: absolute; top: 0; left:0; right:0; bottom:0;"> | ||
<img src="https://images.unsplash.com/photo-1483354483454-4cd359948304?dpr=1&auto=format&fit=crop&w=1000&q=80&cs=tinysrgb&ixid=dW5zcGxhc2guY29tOzs7Ozs%3D"> | ||
</div> | ||
|
||
<ion-card-header> | ||
<ion-card-subtitle> | ||
Subtitle | ||
</ion-card-subtitle> | ||
<ion-card-title> | ||
Title | ||
</ion-card-title> | ||
</ion-card-header> | ||
|
||
<ion-card-content> | ||
This button should have a background. | ||
</ion-card-content> | ||
</ion-card> | ||
|
||
</ion-content> | ||
|
||
</ion-app> | ||
<style> | ||
.content { | ||
background: #e5e5e5; | ||
} | ||
|
||
</style> | ||
</body> | ||
|
||
</html> |