mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
🐛 Fix input variant
This commit is contained in:
@@ -499,7 +499,7 @@ test.describe("Tokens: Tokens Tab", () => {
|
|||||||
await valueField.fill("");
|
await valueField.fill("");
|
||||||
// TODO: We need to fix this translation
|
// TODO: We need to fix this translation
|
||||||
await expect(
|
await expect(
|
||||||
tokensUpdateCreateModal.getByText("Empty field"),
|
tokensUpdateCreateModal.getByText("Token value cannot be empty"),
|
||||||
).toBeVisible();
|
).toBeVisible();
|
||||||
await valueSaturationSelector.click({ position: { x: 50, y: 50 } });
|
await valueSaturationSelector.click({ position: { x: 50, y: 50 } });
|
||||||
await expect(valueField).toHaveValue(/^#[A-Fa-f\d]+$/);
|
await expect(valueField).toHaveValue(/^#[A-Fa-f\d]+$/);
|
||||||
|
|||||||
@@ -205,6 +205,7 @@
|
|||||||
;; TODO: Review this value vs default-value
|
;; TODO: Review this value vs default-value
|
||||||
:value (or value "")
|
:value (or value "")
|
||||||
:hint-message (:message hint)
|
:hint-message (:message hint)
|
||||||
|
:variant "comfortable"
|
||||||
:slot-start swatch
|
:slot-start swatch
|
||||||
:hint-type (:type hint)})
|
:hint-type (:type hint)})
|
||||||
|
|
||||||
|
|||||||
@@ -83,6 +83,7 @@
|
|||||||
(mf/spread-props props {:on-change on-change
|
(mf/spread-props props {:on-change on-change
|
||||||
:default-value value
|
:default-value value
|
||||||
:hint-message (:message hint)
|
:hint-message (:message hint)
|
||||||
|
:variant "comfortable"
|
||||||
:hint-type (:type hint)})
|
:hint-type (:type hint)})
|
||||||
|
|
||||||
props
|
props
|
||||||
|
|||||||
Reference in New Issue
Block a user