mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-16 22:06:34 +00:00
Revert "Mobile click accessibility" (#11526)
This commit is contained in:
parent
148bb99d89
commit
5fde6e659d
@ -1,11 +1,7 @@
|
|||||||
import {
|
import { setPassiveTouchGestures } from "@polymer/polymer/lib/utils/settings";
|
||||||
setPassiveTouchGestures,
|
|
||||||
setCancelSyntheticClickEvents,
|
|
||||||
} from "@polymer/polymer/lib/utils/settings";
|
|
||||||
import "../layouts/home-assistant";
|
import "../layouts/home-assistant";
|
||||||
import "../resources/ha-style";
|
import "../resources/ha-style";
|
||||||
import "../resources/roboto";
|
import "../resources/roboto";
|
||||||
import "../util/legacy-support";
|
import "../util/legacy-support";
|
||||||
|
|
||||||
setPassiveTouchGestures(true);
|
setPassiveTouchGestures(true);
|
||||||
setCancelSyntheticClickEvents(false);
|
|
||||||
|
@ -1,14 +1,11 @@
|
|||||||
// Compat needs to be first import
|
// Compat needs to be first import
|
||||||
import "../resources/compatibility";
|
import "../resources/compatibility";
|
||||||
import { setCancelSyntheticClickEvents } from "@polymer/polymer/lib/utils/settings";
|
|
||||||
import "../auth/ha-authorize";
|
import "../auth/ha-authorize";
|
||||||
import "../resources/ha-style";
|
import "../resources/ha-style";
|
||||||
import "../resources/roboto";
|
import "../resources/roboto";
|
||||||
import "../resources/safari-14-attachshadow-patch";
|
import "../resources/safari-14-attachshadow-patch";
|
||||||
import "../resources/array.flat.polyfill";
|
import "../resources/array.flat.polyfill";
|
||||||
|
|
||||||
setCancelSyntheticClickEvents(false);
|
|
||||||
|
|
||||||
/* polyfill for paper-dropdown */
|
/* polyfill for paper-dropdown */
|
||||||
setTimeout(
|
setTimeout(
|
||||||
() => import("web-animations-js/web-animations-next-lite.min"),
|
() => import("web-animations-js/web-animations-next-lite.min"),
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
// Compat needs to be first import
|
// Compat needs to be first import
|
||||||
import "../resources/compatibility";
|
import "../resources/compatibility";
|
||||||
import { setCancelSyntheticClickEvents } from "@polymer/polymer/lib/utils/settings";
|
|
||||||
import "../resources/safari-14-attachshadow-patch";
|
import "../resources/safari-14-attachshadow-patch";
|
||||||
|
|
||||||
import { PolymerElement } from "@polymer/polymer";
|
import { PolymerElement } from "@polymer/polymer";
|
||||||
@ -16,8 +15,6 @@ import { createCustomPanelElement } from "../util/custom-panel/create-custom-pan
|
|||||||
import { loadCustomPanel } from "../util/custom-panel/load-custom-panel";
|
import { loadCustomPanel } from "../util/custom-panel/load-custom-panel";
|
||||||
import { setCustomPanelProperties } from "../util/custom-panel/set-custom-panel-properties";
|
import { setCustomPanelProperties } from "../util/custom-panel/set-custom-panel-properties";
|
||||||
|
|
||||||
setCancelSyntheticClickEvents(false);
|
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
interface Window {
|
interface Window {
|
||||||
loadES5Adapter: () => Promise<unknown>;
|
loadES5Adapter: () => Promise<unknown>;
|
||||||
@ -50,7 +47,7 @@ function initialize(
|
|||||||
) {
|
) {
|
||||||
const style = document.createElement("style");
|
const style = document.createElement("style");
|
||||||
|
|
||||||
style.innerHTML = `body { margin:0; }
|
style.innerHTML = `body { margin:0; }
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
body {
|
body {
|
||||||
background-color: #111111;
|
background-color: #111111;
|
||||||
|
@ -1,14 +1,11 @@
|
|||||||
// Compat needs to be first import
|
// Compat needs to be first import
|
||||||
import "../resources/compatibility";
|
import "../resources/compatibility";
|
||||||
import { setCancelSyntheticClickEvents } from "@polymer/polymer/lib/utils/settings";
|
|
||||||
import "../onboarding/ha-onboarding";
|
import "../onboarding/ha-onboarding";
|
||||||
import "../resources/ha-style";
|
import "../resources/ha-style";
|
||||||
import "../resources/roboto";
|
import "../resources/roboto";
|
||||||
import "../resources/safari-14-attachshadow-patch";
|
import "../resources/safari-14-attachshadow-patch";
|
||||||
import "../resources/array.flat.polyfill";
|
import "../resources/array.flat.polyfill";
|
||||||
|
|
||||||
setCancelSyntheticClickEvents(false);
|
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
interface Window {
|
interface Window {
|
||||||
stepsPromise: Promise<Response>;
|
stepsPromise: Promise<Response>;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user