mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 13:14:58 +08:00
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:
parent
909c6a6d4b
commit
e9490b3032
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user