mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: Make color ARIA labels better (#3871)
* Make color aria labels better * Use isTransparent helper * Fix import * Try to fix test * More test fixes * Reuse variable
This commit is contained in:
parent
d607249205
commit
621812d0eb
4 changed files with 92 additions and 37 deletions
|
@ -19,6 +19,7 @@ import { ShortcutName } from "../actions/shortcuts";
|
|||
import { copiedStyles } from "../actions/actionStyles";
|
||||
import { API } from "./helpers/api";
|
||||
import { setDateTimeForTests } from "../utils";
|
||||
import { t } from "../i18n";
|
||||
|
||||
const checkpoint = (name: string) => {
|
||||
expect(renderScene.mock.calls.length).toMatchSnapshot(
|
||||
|
@ -314,9 +315,9 @@ describe("contextMenu element", () => {
|
|||
|
||||
// Change some styles of second rectangle
|
||||
clickLabeledElement("Stroke");
|
||||
clickLabeledElement("#c92a2a");
|
||||
clickLabeledElement(t("colors.c92a2a"));
|
||||
clickLabeledElement("Background");
|
||||
clickLabeledElement("#e64980");
|
||||
clickLabeledElement(t("colors.e64980"));
|
||||
// Fill style
|
||||
fireEvent.click(screen.getByTitle("Cross-hatch"));
|
||||
// Stroke width
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue