Send Field label pointer events to input

When the `label` element is displayed on top of the input (`label` is set and
there is no `placeholder`), it would block clicks from reaching the input. This
allows them to get through, but then also restores `label`'s events once it
moves out of the way.

Fixes https://github.com/vector-im/riot-web/issues/8469
This commit is contained in:
J. Ryan Stinnett 2019-02-27 13:23:45 +00:00
parent 909c6a6d4b
commit e9490b3032

View File

@ -88,6 +88,7 @@ limitations under the License.
top: 0px;
margin: 7px 8px;
padding: 2px;
pointer-events: none; // Allow clicks to fall through to the input
}
.mx_Field input:focus + label,
@ -104,6 +105,7 @@ limitations under the License.
top: -13px;
padding: 0 2px;
background-color: $field-focused-label-bg-color;
pointer-events: initial;
}
.mx_Field input:focus + label,