-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(dialog): Apply max-width to same element as min-width (#3749)
- Loading branch information
1 parent
b6cf04e
commit 2dac7e1
Showing
5 changed files
with
113 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
<!DOCTYPE html> | ||
<!-- | ||
Copyright 2018 Google Inc. | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. | ||
--> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Issue #3717 - MDC Web Screenshot Test</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="stylesheet" href="../../../out/mdc.button.css"> | ||
<link rel="stylesheet" href="../../../out/mdc.dialog.css"> | ||
<link rel="stylesheet" href="../../../out/mdc.form-field.css"> | ||
<link rel="stylesheet" href="../../../out/mdc.list.css"> | ||
<link rel="stylesheet" href="../../../out/mdc.radio.css"> | ||
<link rel="stylesheet" href="../../../out/spec/fixture.css"> | ||
<link rel="stylesheet" href="../../../out/spec/mdc-dialog/fixture.css"> | ||
</head> | ||
|
||
<body class="test-container test-container--edge-fonts mdc-dialog-scroll-lock"> | ||
<main class="test-viewport test-viewport--center"> | ||
|
||
<button class="test-dialog-open-button" data-test-dialog-id="test-dialog" autofocus>Open Dialog</button> | ||
|
||
<!-- | ||
This page tests invoking mdc-dialog's min-width mixin with a higher value than the max-width mixin. | ||
https://github.com/material-components/material-components-web/issues/3717 | ||
--> | ||
<div class="mdc-dialog mdc-dialog--open test-dialog test-dialog--3717" | ||
role="alertdialog" | ||
aria-modal="true" | ||
aria-labelledby="test-dialog__title" | ||
aria-describedby="test-dialog__content" | ||
id="test-dialog"> | ||
<div class="mdc-dialog__scrim"></div> | ||
<div class="mdc-dialog__container"> | ||
<div class="mdc-dialog__surface"> | ||
<h2 class="mdc-dialog__title test-dialog__title test-dialog__title--3-line" id="test-dialog__title"><!-- | ||
-->“The Count of Monte Cristo” by Alexandre <span class="test-font--redact-all">Dumas</span>.<br> | ||
Published in 1844 and translated by Robin Buss.<br> | ||
Public domain.<!-- | ||
--></h2> | ||
<div class="mdc-dialog__content test-dialog__content" id="test-dialog__content"> | ||
<div class="test-dialog__content-rect"> | ||
<p>On the <span class="test-font--redact-all">24th</span> of February, 1815, the look-out at Notre-Dame de la Garde | ||
signalled the <span class="test-font--redact-all">three-master, the</span> Pharaon from Smyrna, Trieste, and | ||
Naples.</p> | ||
|
||
<p>As usual, a pilot put off immediately, and rounding the Château d’If, | ||
got on board the vessel between Cape Morgiou and Rion island.</p> | ||
|
||
<p>Immediately, and according to custom, the ramparts of Fort Saint-Jean | ||
were covered with spectators; it is always an event at Marseilles for a | ||
ship to come into port, especially when this ship, like the Pharaon, has | ||
been built, rigged, and laden at the old Phocee docks, and belongs to an | ||
owner of the city.</p> | ||
</div> | ||
</div> | ||
<footer class="mdc-dialog__actions"> | ||
<button type="button" class="mdc-button mdc-dialog__button" data-mdc-dialog-action="close"> | ||
<span class="test-font--redact-all">Cancel</span> | ||
</button> | ||
<button type="button" class="mdc-button mdc-dialog__button" data-mdc-dialog-action="yes"> | ||
<span class="test-font--redact-all">OK</span> | ||
</button> | ||
</footer> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</main> | ||
|
||
<!-- Automatically provides/replaces `Promise` if missing or broken. --> | ||
<script src="https://cdn.jsdelivr.net/npm/es6-promise@4/dist/es6-promise.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/es6-promise@4/dist/es6-promise.auto.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/fontfaceobserver/2.0.13/fontfaceobserver.standalone.js"></script> | ||
<script src="../../../out/material-components-web.js"></script> | ||
<script src="../../../out/spec/fixture.js"></script> | ||
<script src="../../../out/spec/mdc-dialog/fixture.js"></script> | ||
</body> | ||
</html> |