-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(select): Remove blue background in IE on focus #3497
Changes from 6 commits
c7654af
42dd975
6e2d3e3
f85f4c9
5d4f602
8e370ba
9bd6052
1b65fc8
fe7a3cc
a524bb2
ab419f3
e1ff9f0
53e9c7f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<!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 3496 - MDC Web Screenshot Test</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="stylesheet" href="../../../out/mdc.select.css"> | ||
<link rel="stylesheet" href="../../../out/mdc.typography.css"> | ||
<link rel="stylesheet" href="../../../out/spec/fixture.css"> | ||
<link rel="stylesheet" href="../../../out/spec/mdc-select/fixture.css"> | ||
</head> | ||
|
||
<body class="test-container mdc-typography"> | ||
<main class="test-viewport test-viewport--mobile"> | ||
<div class="test-layout"> | ||
|
||
<!-- This tests that select suppresses IE's default blue background on focus --> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think we need a new screenshot page for this. We can add these comments to the 3230.html page stating that the first select is verifying both issues. Maybe rename the file There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
<!-- See https://github.com/material-components/material-components-web/issues/3496 --> | ||
<div class="test-cell test-cell--select"> | ||
<div class="mdc-select mdc-select--outlined"> | ||
<select class="mdc-select__native-control" id="my-select" autofocus> | ||
<option value="grains" selected> | ||
Bread, Cereal, Rice, and Pasta | ||
</option> | ||
<option value="vegetables" disabled> | ||
Vegetables | ||
</option> | ||
</select> | ||
<div class="mdc-notched-outline mdc-notched-outline--notched"> | ||
<svg> | ||
<path class="mdc-notched-outline__path"/> | ||
</svg> | ||
</div> | ||
<div class="mdc-notched-outline__idle"></div> | ||
</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-select/fixture.js"></script> | ||
</body> | ||
</html> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would replacing this with
@include mdc-select-ink-color($mdc-select-ink-color);
obviate the need for #3513?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we still need both PRs.
mdc-select-ink-color()
specifically excludes--disabled
, which is why the browser's default font color was getting used.We either need to update
mdc-select-ink-color()
so that it includes--disabled
, or set a disabled-specificcolor
.It seems like the simplest thing is to set the color once at a high level, and have all children just
inherit
it.