diff --git a/playwright/e2e/room-directory/room-directory.spec.ts b/playwright/e2e/room-directory/room-directory.spec.ts index 6d08650895..5068f8e5cc 100644 --- a/playwright/e2e/room-directory/room-directory.spec.ts +++ b/playwright/e2e/room-directory/room-directory.spec.ts @@ -41,9 +41,9 @@ test.describe("Room Directory", () => { // Publish into the public rooms directory const publishedAddresses = page.locator(".mx_SettingsFieldset", { hasText: "Published Addresses" }); await expect(publishedAddresses.locator("#canonicalAlias")).toHaveValue("#gaming:localhost"); - const checkbox = publishedAddresses.getByLabel( - "Publish this room to the public in localhost's room directory?", - ); + const checkbox = publishedAddresses + .locator(".mx_SettingsFlag", { hasText: "Publish this room to the public in localhost's room directory?" }) + .getByRole("switch"); await checkbox.check(); await expect(checkbox).toBeChecked(); diff --git a/res/css/_common.pcss b/res/css/_common.pcss index 29bb165e7b..c807689dd3 100644 --- a/res/css/_common.pcss +++ b/res/css/_common.pcss @@ -56,6 +56,11 @@ limitations under the License. /* This is required to ensure Compound tooltips correctly draw where they should with z-index: auto */ contain: strict; } +.mx_Dialog_StaticContainer, +.mx_Dialog_Container { + /* This is required to ensure Compound tooltips correctly draw where they should with z-index: auto */ + isolation: isolate; +} /** * We need to increase the specificity of the selector to override the diff --git a/src/components/views/elements/SettingsFlag.tsx b/src/components/views/elements/SettingsFlag.tsx index 09bfa5d241..df4a08c1d5 100644 --- a/src/components/views/elements/SettingsFlag.tsx +++ b/src/components/views/elements/SettingsFlag.tsx @@ -16,6 +16,7 @@ limitations under the License. */ import React from "react"; +import { randomString } from "matrix-js-sdk/src/randomstring"; import SettingsStore from "../../../settings/SettingsStore"; import { _t } from "../../../languageHandler"; @@ -44,6 +45,8 @@ interface IState { } export default class SettingsFlag extends React.Component { + private readonly id = `mx_SettingsFlag_${randomString(12)}`; + public constructor(props: IProps) { super(props); @@ -119,7 +122,7 @@ export default class SettingsFlag extends React.Component { } else { return (
-