mirror of
https://github.com/penpot/penpot.git
synced 2026-09-14 07:59:36 +00:00
🐛 Fix input variant
This commit is contained in:
parent
508db99a57
commit
8e79dfcb82
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user