Typography fix
This commit is contained in:
@@ -112,8 +112,7 @@ describe("FeatureGrid (behavioral tests)", () => {
|
||||
expect(title.className).toMatch(/text-\[18px\]/);
|
||||
expect(title.className).toMatch(/md:text-\[length:var\(--sizing-600,24px\)\]/);
|
||||
const subtitle = screen.getByRole("heading", { name: "Test Subtitle" });
|
||||
expect(subtitle.className).toMatch(/text-\[length:var\(--sizing-350,14px\)\]/);
|
||||
expect(subtitle.className).toMatch(/md:text-\[length:var\(--sizing-400,16px\)\]/);
|
||||
expect(subtitle).toHaveClass("text-small-paragraph", "md:text-medium-paragraph");
|
||||
});
|
||||
|
||||
it("applies grain texture to feature grid icons", () => {
|
||||
|
||||
@@ -70,13 +70,13 @@ describe("InputLabel – behaviour specifics", () => {
|
||||
it("applies size s styling", () => {
|
||||
render(<InputLabel label="Test Label" size="s" />);
|
||||
const label = screen.getByText("Test Label");
|
||||
expect(label).toHaveClass("text-[length:var(--sizing-350,14px)]");
|
||||
expect(label).toHaveClass("text-small-paragraph");
|
||||
});
|
||||
|
||||
it("applies size m styling", () => {
|
||||
render(<InputLabel label="Test Label" size="m" />);
|
||||
const label = screen.getByText("Test Label");
|
||||
expect(label).toHaveClass("text-[length:var(--sizing-400,16px)]");
|
||||
expect(label).toHaveClass("text-medium-paragraph");
|
||||
});
|
||||
|
||||
it("applies default palette styling", () => {
|
||||
|
||||
Reference in New Issue
Block a user