From 41ab1c6c9d2599b3e32a8cee6091c40ba171fe47 Mon Sep 17 00:00:00 2001 From: Christian Oliff Date: Mon, 25 Jun 2018 05:11:39 +0900 Subject: Fixes Edge and IE label overlapping issue (#25919) The 'Floating labels' example is only supported on Chrome, Safari and Firefox. On Edge and IE the label is displayed always and any text input overlaps the label which makes it unreadable. The fix here targets Edge and IE and makes the form behave normally, the labels are hidden and the placeholder color is standard. --- .../examples/floating-labels/floating-labels.css | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'docs/4.1/examples') diff --git a/docs/4.1/examples/floating-labels/floating-labels.css b/docs/4.1/examples/floating-labels/floating-labels.css index 2c1d91bf36..a5634ab5f4 100644 --- a/docs/4.1/examples/floating-labels/floating-labels.css +++ b/docs/4.1/examples/floating-labels/floating-labels.css @@ -80,3 +80,25 @@ body { font-size: 12px; color: #777; } + +/* Fallback for Edge +-------------------------------------------------- */ +@supports (-ms-ime-align: auto) { + .form-label-group > label { + display: none; + } + .form-label-group input::-ms-input-placeholder { + color: #777; + } +} + +/* Fallback for IE +-------------------------------------------------- */ +@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) { + .form-label-group > label { + display: none; + } + .form-label-group input:-ms-input-placeholder { + color: #777; + } +} -- cgit v1.2.3