Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
fix(demos): Fix trailing whitespace and mixed tabs in dialog demo (#1200
Browse files Browse the repository at this point in the history
)
  • Loading branch information
kfranqueiro authored Aug 28, 2017
1 parent 88b7167 commit e1f5d53
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions demos/dialog.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,29 +113,29 @@ <h2 id="mdc-dialog-default-label" class="mdc-dialog__header__title">
</div>
<div class="mdc-dialog__backdrop"></div>
</aside>

<aside id="mdc-dialog-colored-footer-buttons"
class="mdc-dialog"
role="alertdialog"
aria-hidden="true"
aria-labelledby="mdc-dialog-colored-footer-button-label"
aria-describedby="mdc-dialog-colored-footer-button-description">
<div class="mdc-dialog__surface">
<header class="mdc-dialog__header">
<h2 id="mdc-dialog-colored-footer-button-label" class="mdc-dialog__header__title">
Use Google's location service?
</h2>
</header>
<section id="mdc-dialog-colored-footer-button-description" class="mdc-dialog__body">
Let Google help apps determine location. This means sending anonymous location data to Google, even when no apps are running.
</section>
<footer class="mdc-dialog__footer">
<button type="button" class="mdc-button mdc-dialog__footer__button mdc-dialog__footer__button--cancel">Decline</button>
<button type="button" class="mdc-button mdc-dialog__footer__button mdc-dialog__footer__button--accept mdc-dialog__action">Accept</button>
</footer>
</div>
<div class="mdc-dialog__backdrop"></div>
</aside>
class="mdc-dialog"
role="alertdialog"
aria-hidden="true"
aria-labelledby="mdc-dialog-colored-footer-button-label"
aria-describedby="mdc-dialog-colored-footer-button-description">
<div class="mdc-dialog__surface">
<header class="mdc-dialog__header">
<h2 id="mdc-dialog-colored-footer-button-label" class="mdc-dialog__header__title">
Use Google's location service?
</h2>
</header>
<section id="mdc-dialog-colored-footer-button-description" class="mdc-dialog__body">
Let Google help apps determine location. This means sending anonymous location data to Google, even when no apps are running.
</section>
<footer class="mdc-dialog__footer">
<button type="button" class="mdc-button mdc-dialog__footer__button mdc-dialog__footer__button--cancel">Decline</button>
<button type="button" class="mdc-button mdc-dialog__footer__button mdc-dialog__footer__button--accept mdc-dialog__action">Accept</button>
</footer>
</div>
<div class="mdc-dialog__backdrop"></div>
</aside>

<aside id="mdc-dialog-with-list"
class="mdc-dialog"
Expand Down Expand Up @@ -258,12 +258,12 @@ <h2 id="mdc-dialog-default-label" class="mdc-dialog__header__title">
document.querySelector('#dialog-with-list-activation').addEventListener('click', function (evt) {
dialogScrollable.lastFocusedTarget = evt.target;
dialogScrollable.show();
});
});
var dialogColoredButton = new mdc.dialog.MDCDialog(document.querySelector('#mdc-dialog-colored-footer-buttons'));
document.querySelector('#colored-footer-button-dialog-activation').addEventListener('click', function (evt) {
dialogColoredButton.lastFocusedTarget = evt.target;
dialogColoredButton.lastFocusedTarget = evt.target;
dialogColoredButton.show();
});
});
})();
</script>
<script>
Expand Down

0 comments on commit e1f5d53

Please sign in to comment.