|
| 1 | +<!DOCTYPE html> |
| 2 | +<!-- |
| 3 | + Copyright 2018 Google Inc. |
| 4 | +
|
| 5 | + Permission is hereby granted, free of charge, to any person obtaining a copy |
| 6 | + of this software and associated documentation files (the "Software"), to deal |
| 7 | + in the Software without restriction, including without limitation the rights |
| 8 | + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 9 | + copies of the Software, and to permit persons to whom the Software is |
| 10 | + furnished to do so, subject to the following conditions: |
| 11 | +
|
| 12 | + The above copyright notice and this permission notice shall be included in |
| 13 | + all copies or substantial portions of the Software. |
| 14 | +
|
| 15 | + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 16 | + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 17 | + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 18 | + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 19 | + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 20 | + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
| 21 | + THE SOFTWARE. |
| 22 | +--> |
| 23 | +<html lang="en"> |
| 24 | +<head> |
| 25 | + <meta charset="utf-8"> |
| 26 | + <title>Issue 3230 - MDC Web Screenshot Test</title> |
| 27 | + <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 28 | + <link rel="stylesheet" href="../../../out/mdc.select.css"> |
| 29 | + <link rel="stylesheet" href="../../../out/mdc.typography.css"> |
| 30 | + <link rel="stylesheet" href="../../../out/spec/fixture.css"> |
| 31 | + <link rel="stylesheet" href="../../../out/spec/mdc-select/fixture.css"> |
| 32 | +</head> |
| 33 | + |
| 34 | +<body class="test-container mdc-typography"> |
| 35 | +<main class="test-viewport test-viewport--mobile"> |
| 36 | + <div class="test-layout"> |
| 37 | + |
| 38 | + <!-- This tests that the outlined select will still turn the primary color when it does not have a floating label --> |
| 39 | + <!-- See https://github.com/material-components/material-components-web/issues/3230 --> |
| 40 | + <div class="test-cell test-cell--select"> |
| 41 | + <div class="mdc-select mdc-select--outlined"> |
| 42 | + <select class="mdc-select__native-control" id="my-select" autofocus> |
| 43 | + <option value="grains" selected> |
| 44 | + Bread, Cereal, Rice, and Pasta |
| 45 | + </option> |
| 46 | + <option value="vegetables" disabled> |
| 47 | + Vegetables |
| 48 | + </option> |
| 49 | + </select> |
| 50 | + <div class="mdc-notched-outline mdc-notched-outline--notched"> |
| 51 | + <svg> |
| 52 | + <path class="mdc-notched-outline__path"/> |
| 53 | + </svg> |
| 54 | + </div> |
| 55 | + <div class="mdc-notched-outline__idle"></div> |
| 56 | + </div> |
| 57 | + </div> |
| 58 | + |
| 59 | + </div> |
| 60 | +</main> |
| 61 | + |
| 62 | +<!-- Automatically provides/replaces `Promise` if missing or broken. --> |
| 63 | +<script src="https://cdn.jsdelivr.net/npm/es6-promise@4/dist/es6-promise.js"></script> |
| 64 | +<script src="https://cdn.jsdelivr.net/npm/es6-promise@4/dist/es6-promise.auto.js"></script> |
| 65 | +<script src="https://cdnjs.cloudflare.com/ajax/libs/fontfaceobserver/2.0.13/fontfaceobserver.standalone.js"></script> |
| 66 | +<script src="../../../out/material-components-web.js"></script> |
| 67 | +<script src="../../../out/spec/fixture.js"></script> |
| 68 | +<script src="../../../out/spec/mdc-select/fixture.js"></script> |
| 69 | +</body> |
| 70 | +</html> |
0 commit comments