mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-24 18:59:17 +00:00
Restore the read marker fade by using a valid CSS easing function (#34485)
* Restore the read marker fade by using a valid CSS easing function * Drop postcss-easings The read marker was the last thing that could have used a named easing, and its style now lives in shared-components, which vite builds without the plugin. Nothing in the tree names an easing any more, so the plugin, its type shim and the dependency all go.
This commit is contained in:
Vendored
-10
@@ -1,10 +0,0 @@
|
||||
/*
|
||||
Copyright 2026 Element Creations Ltd.
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
declare module "postcss-easings" {
|
||||
export default function (): void;
|
||||
}
|
||||
@@ -188,7 +188,6 @@
|
||||
"oxfmt": "0.60.0",
|
||||
"playwright-core": "catalog:",
|
||||
"postcss": "8.5.25",
|
||||
"postcss-easings": "4.0.0",
|
||||
"postcss-hexrgba": "2.1.0",
|
||||
"postcss-import": "16.1.1",
|
||||
"postcss-loader": "8.2.1",
|
||||
|
||||
@@ -25,7 +25,6 @@ import postcssPresetEnv from "postcss-preset-env";
|
||||
import postcssImport from "postcss-import";
|
||||
import postcssMixins from "postcss-mixins";
|
||||
import postcssNested from "postcss-nested";
|
||||
import postcssEasings from "postcss-easings";
|
||||
|
||||
import pkgJson from "./package.json" with { type: "json" };
|
||||
import componentsJson from "./components.json" with { type: "json" };
|
||||
@@ -411,7 +410,6 @@ export default (env: string, argv: Record<string, any>): webpack.Configuration =
|
||||
postcssMixins(),
|
||||
postcssSimpleVars(),
|
||||
postcssNested(),
|
||||
postcssEasings(),
|
||||
postcssHexrgba(),
|
||||
|
||||
// It's important that this plugin is last otherwise we end
|
||||
|
||||
@@ -22,7 +22,8 @@
|
||||
border-top: solid 1px var(--cpd-color-icon-accent-tertiary);
|
||||
border-bottom: solid 1px var(--cpd-color-icon-accent-tertiary);
|
||||
will-change: width, opacity;
|
||||
/* cubic-bezier(0.12, 0, 0.39, 0) is ease-in-sine, spelled out because CSS has no name for it. */
|
||||
transition:
|
||||
width 400ms easeinsine 1s,
|
||||
opacity 400ms easeinsine 1s;
|
||||
width 400ms cubic-bezier(0.12, 0, 0.39, 0) 1s,
|
||||
opacity 400ms cubic-bezier(0.12, 0, 0.39, 0) 1s;
|
||||
}
|
||||
|
||||
@@ -71,6 +71,21 @@ describe("ReadMarker", () => {
|
||||
expect(onGhostTransitionEnd).toHaveBeenCalledTimes(1);
|
||||
});
|
||||
|
||||
it("gives the ghost marker a transition the browser accepts", () => {
|
||||
render(
|
||||
<ul>
|
||||
<ReadMarker eventId="$ghost" kind="ghost" />
|
||||
</ul>,
|
||||
);
|
||||
|
||||
// An unparseable easing drops the whole shorthand, so the ghost would vanish instantly
|
||||
// and never fire transitionend.
|
||||
const style = getComputedStyle(screen.getByRole("separator"));
|
||||
expect(style.transitionProperty).toBe("width, opacity");
|
||||
expect(style.transitionDuration).toBe("0.4s, 0.4s");
|
||||
expect(style.transitionDelay).toBe("1s, 1s");
|
||||
});
|
||||
|
||||
it("wires the current marker ref", () => {
|
||||
const onCurrentMarkerRef = vi.fn();
|
||||
|
||||
|
||||
Generated
-14
@@ -968,9 +968,6 @@ importers:
|
||||
postcss:
|
||||
specifier: 8.5.25
|
||||
version: 8.5.25
|
||||
postcss-easings:
|
||||
specifier: 4.0.0
|
||||
version: 4.0.0(postcss@8.5.25)
|
||||
postcss-hexrgba:
|
||||
specifier: 2.1.0
|
||||
version: 2.1.0(postcss@8.5.25)
|
||||
@@ -11072,12 +11069,6 @@ packages:
|
||||
peerDependencies:
|
||||
postcss: ^8.4
|
||||
|
||||
postcss-easings@4.0.0:
|
||||
resolution: {integrity: sha512-KNpwHA3mTnf0UWcdwahQDaz7DDJ6QteVwdlLff98se854p6pyQW9iofwrD05vtlp33AAAxuUGCOhYwERRJGy6Q==}
|
||||
engines: {node: '>=16.0'}
|
||||
peerDependencies:
|
||||
postcss: ^8.1.0
|
||||
|
||||
postcss-focus-visible@11.0.0:
|
||||
resolution: {integrity: sha512-VG1a9kBKizUBWS66t5xyB4uLONBnvZLCmZXxT40FALu8EF0QgVZBYy5ApC0KhmpHsv+pvHMJHB3agKHwmocWjw==}
|
||||
engines: {node: '>=20.19.0'}
|
||||
@@ -24614,11 +24605,6 @@ snapshots:
|
||||
postcss: 8.5.25
|
||||
postcss-value-parser: 4.2.0
|
||||
|
||||
postcss-easings@4.0.0(postcss@8.5.25):
|
||||
dependencies:
|
||||
postcss: 8.5.25
|
||||
postcss-value-parser: 4.2.0
|
||||
|
||||
postcss-focus-visible@11.0.0(postcss@8.5.25):
|
||||
dependencies:
|
||||
postcss: 8.5.25
|
||||
|
||||
Reference in New Issue
Block a user