-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from PredixDev/modal-bug
Fix #29 Modal bug
- Loading branch information
Showing
5 changed files
with
174 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
<title>px-modal demo</title> | ||
|
||
<!-- Load webcomponentsjs + Polymer --> | ||
<script src="../../webcomponentsjs/webcomponents-lite.js"></script> | ||
<link rel="import" href="../../polymer/polymer.html"/> | ||
|
||
<!-- Load components --> | ||
<link rel="import" href="../../px-modal/px-modal.html"/> | ||
<link rel="import" href="../px-slider.html"/> | ||
|
||
<style> | ||
html { | ||
font-size: 15px; | ||
} | ||
</style> | ||
|
||
<!-- Load theme --> | ||
<link rel="import" href="../../px-theme/px-theme-styles.html"/> | ||
<custom-style> | ||
<style include="px-theme-styles" is="custom-style"></style> | ||
</custom-style> | ||
</head> | ||
<body> | ||
<dom-bind> | ||
<template is="dom-bind"> | ||
<!-- <div style="transform: translate(20%,0)"> --> | ||
<px-modal | ||
header-text="Confirm delete" | ||
body-text="Do you want to delete this record? The record will be deleted permanently." | ||
accept-text="Permanently Delete Record" | ||
reject-text="Cancel" | ||
open-trigger="[[trigger]]"> | ||
<div slot="body"> | ||
<div style="transform: translate(-10%,0)"> | ||
<px-slider | ||
value="10" | ||
end-value="90" | ||
min="0" | ||
max="100" | ||
step="1" | ||
is-range | ||
scale="linear" | ||
base="10" | ||
exponent="2" | ||
min-label-position="bottom" | ||
max-label-position="bottom"> | ||
</px-slider> | ||
</div> | ||
</div> | ||
</px-modal> | ||
<!-- </div> --> | ||
<px-modal-trigger | ||
trigger="{{trigger}}"> | ||
<button class="btn btn--tertiary">Open Modal</button> | ||
</px-modal-trigger> | ||
</template> | ||
</dom-bind> | ||
</body> | ||
</html> |
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